title: Jersey JSON switching from camel case to underscores (snake case)
body: <p>I recently switched to jersey 2 ,.
  I went through the documentation/web and got to know how to convert response class to custom class using <code>.readEntity(ClassName.class);</code> </p>
  
  <p>But I am stuck at using <code>CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES</code> naming strategy. </p>
  
  <p>The current conversion fails as the response fields are with "_" and my POJO has Snake case . </p>
  
  <p>Any help will be appreciated.  </p>
  
  <p>In jersey1 , I have been doing this :</p>
  
  <pre><code>MyResponse myResponse = client  
          .resource(url)
          .type(MediaType.APPLICATION_JSON)
          .accept(MediaType.APPLICATION_JSON)
          .post(RequestClass.class, request);
  </code></pre>
  
  <p>the same I am not able to achieve post jersey 2 :
  It gives compile time error when I as in above code :</p>
  
  <p>I also tried :</p>
  
  <pre><code>MyResponse myResponse = client
          .target(getUrl())
          .request()
          .post(Entity.entity(request, MediaType.APPLICATION_JSON))
          .readEntity(MyResponse.class);
  </code></pre>
  
  <p>but it's not creating <code>myResponse</code> object , cause the response I get has Snake_case response but my POJO has camel case fields. </p>