I am using jersey client to post a file to a REST URI that returns response as json. My requirement is to read the response as is(json) to a string.
Here is the piece of
I was able to find solution to the problem. Just had to call bufferEntity method before getEntity(String.class). This will return response as string.
clientResp.bufferEntity(); String x = clientResp.getEntity(String.class);