I am proxying a web request using spring. The response from the end server is a json, i want to pass the json as is to client without creating a pojo for serializing/deserializing. Is this possible?
@RequestMapping(value = "/sample")
@ResponseBody
Object proxyTesting(){
String result;
//after proxy result={"success":true , "data":5}
return result;
}
at the client end i expect it to be as is. i.e {"success":true , "data":5}
In reality, the result string is nested, and i don't want to create interim pojo's for them.