title: How to add JSON Support in Jersey 2.x
body: <p>I have migrated my application from Jersey 1.x to 2.x and I am trying to replace the following entry from the web.xml</p>
  
  <pre><code>&lt;init-param&gt;
  &lt;param-name&gt;com.sun.jersey.api.json.POJOMappingFeature&lt;/param-name&gt;
  &lt;param-value&gt;true&lt;/param-value&gt;
  &lt;/init-param&gt;
  </code></pre>
  
  <p>in order to be able to get entities as json. </p>
  
  <p>I have read in the official documentation that I have to use the Jackson provider by adding jersey-media-json-jackson dependency and thne register the JacksonFeature.</p>
  
  <p>I added the following dependency:</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;com.fasterxml.jackson.jaxrs&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-jaxrs-json-provider&lt;/artifactId&gt;
          &lt;version&gt;2.4.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>but now I don't know what I have to add in my <code>web.xml</code> file as a value in the </p>
  
  <p><code>&lt;param-name&gt;jersey.config.server.provider.packages&lt;/param-name&gt;</code></p>
  
  <p>Any ideas ? I wan't to do it via a configuration file like web.xml and not inside my code.</p>