title: How do I tell the Jersey Client to do the equivalent of @JsonIgnoreProperties(ignoreUnknown = true) on every class it deserializes?
body: <p>I have a class that I'm using the Jersey Client to deserialize.  This class has a method that looks like this:</p>
  
  <pre><code>public boolean isEmpty() {
      return (code == null &amp;&amp;
              label == null &amp;&amp;
              codeSystem == null &amp;&amp;
              codeSystemLabel == null &amp;&amp;
              description == null &amp;&amp;
              concept == null &amp;&amp;
              alternateCode == null
      );
  </code></pre>
  
  <p>There is no setter.  As-is, this will throw this exception:</p>
  
  <pre><code>com.sun.jersey.api.client.ClientHandlerException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "empty" (Class com.app.models.CodedElementModel), not marked as ignorable
   at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@3b927d51; line: 1, column: 270] (through reference chain: com.app.models.LabOrderModel["code"]-&gt;com.app.models.CodedElementModel["empty"])
  </code></pre>
  
  <p><a href="http://wiki.fasterxml.com/JacksonAnnotations" rel="nofollow">I've read this article</a>, and it turns out I can fix this by putting this annotation on the <code>CodedElementModel</code> class: <code>@JsonIgnoreProperties(ignoreUnknown = true)</code>.</p>
  
  <p>The problem is I have a lot of methods throwing this exception.  Is there a way to configure the Jersey Client to act as if <code>@JsonIgnoreProperties(ignoreUnknown = true)</code> is set on every class so I don't have to annotate them by hand?  I don't want to have to change ~30 files by adding this annotation manually.  This will prevent such errors in the future if someone adds a getter without a setter.  </p>
  
  <p>Here's how I'm creating my Jersey Client:</p>
  
  <pre><code>    DefaultClientConfig clientConfig = new DefaultClientConfig();
      clientConfig.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE);
      Client client = Client.create(clientConfig);
  </code></pre>
  
  <p>I feel like that <code>clientConfig</code> may have a setting to do this, but I'm not sure how to find it.  </p>