I have JSON response from spring boot as, But I need this response as below, in brief, How can I modify the default parameters of returned response? is there any extra configuration I can set for that? thanks in advance Answer I guess you’re using spring data page so just create an implementation of JsonSerializer eg.
Tag: netflix-zuul
How to get response body in Zuul post filter?
How it is possible to read a response body while using Zuul as a proxy in post filter? I am trying to call the code like this: Answer I’ve managed to overcome this. The solution consists of 4 steps: Read ctx.getResponseDataStream() into a ByteArrayOutputStream Copy OutputStream to 2 InputStreams. Use one of it for your custom purposes. Use the second