I have the code as below
@RequestMapping(method = RequestMethod.POST)
public @ResponseBody ServiceResponse submitCustomerOrder(@RequestBody SubmitCustomerOrderRequest submitCustomerOrderRequest,HttpServletRequest request)
{
String json=????
}
I need the de-serialization should happen to SubmitCustomerOrderRequest object but also need the raw json request in the string for logging the request purpose.
Can anybody help me on this.