Add parameters support for json serialize
Removed orig files
Moved the serialize response to correct function