title: reading JSON response as string using jersey client
body: <p>I am using jersey client to post a file to a REST URI that returns the response as JSON.
  My requirement is to read the response as (JSON) to a string.</p>
  <p>Here is the piece of code that posts the data to the web service.</p>
  <pre><code>final ClientResponse clientResp = resource.type(
              MediaType.MULTIPART_FORM_DATA_TYPE).
              accept(MediaType.APPLICATION_JSON).
              post(ClientResponse.class, inputData);
       System.out.println(&quot;Response from news Rest Resource : &quot; + clientResp.getEntity(String.class)); // This doesnt work.Displays nothing.
  </code></pre>
  <p><code>clientResp.getLength()</code> has 281 bytes which is the size of the response, but <code>clientResp.getEntity(String.class)</code> returns nothing.</p>
  <p>Any ideas what could be incorrect here?</p>