In our application we are using JSON for request and response. The controller methods are annotated with @RequestBody(). The object being returned e.g. TransferResponse. I would
Like Pavel said, you probably can't get to the response JSON this way. I think the best bet is to implement a Filter that looks at the response prior to writing it to the client. Have a look at OncePerRequestFilter for a starting point.