title: JAX-RS Jersey JSON ObjectMapper configuration ignored
body: <p>I've the following code to change a property in Jackson. I'm annotating the classes with XMLRootElements and letting Jersey convert it to JSON, using jackson. </p>
  
  <p>Classes are JAXB annotated.</p>
  
  <pre><code>@Provider
  @Produces("application/json")
  public class JacksonObjectMapper implements ContextResolver&lt;ObjectMapper&gt; {
  private ObjectMapper objectMapper;
  
       public JacksonObjectMapper() throws Exception {
          objectMapper.configure( DeserializationConfig.Feature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT, true);
      }
  
  @Override
      public ObjectMapper getContext(Class&lt;?&gt; type) {
           return this.objectMapper;
      }
  }
  </code></pre>
  
  <p>The configuration above, works as expected if I use Jackson outside jersey (i.e: using his own function), but If I use it inside a Jersey app, the configuration options are ignored.</p>
  
  <p>Is there a way to instruct Jersey to use my class to serialize / deserialize from XML to JSON?</p>