title: Jersey - JSON marshall only specific fields
body: <p>My REST service returns following JSON</p>
  
  <pre><code>{
    "name": "John",
    "id" : 10
  }
  </code></pre>
  
  <p>Can I use Jersey to marshall it into following Bean:</p>
  
  <pre><code>public class User{
      private String name;
      //getter &amp; setter
  }
  </code></pre>
  
  <p>I wanted to do this with following code but it doesn't work</p>
  
  <pre><code>WebResource webResource = client.resource(url);
  webResource.accept(MediaType.APPLICATION_JSON_TYPE);
  User user = webResource.get(User.class);
  </code></pre>
  
  <p>Is this even possible or I have to implement full JSON structure in Java Beans to get it work?</p>
  
  <p>I know that I can parse this JSON with Jackson and any other methods.</p>