new changes made for JSON test

new changes made for JSON test
return type to be Response

return type to be Response
encode javascript

encode javascript