title: Null in getting the post value from Ajax Request
body: <p>I'm sending few values in ajax by Post method.</p>
  
  <pre><code>$.ajax({
      url: 'api/login',
      contentType: 'application/json',
      type: 'POST',
      data: {
          sessionId: '123',
          jCryptions: 'testdata'
      },
      success: function(response) {
      }
  });
  </code></pre>
  
  <p>In web.xml</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;jersey-serlvet&lt;/servlet-name&gt;
  &lt;servlet-class&gt;com.sun.jersey.spi.spring.container.servlet.SpringServlet&lt;/servlet-class&gt;
  &lt;init-param&gt;
      &lt;param-name&gt;com.sun.jersey.config.property.packages&lt;/param-name&gt;
      &lt;param-value&gt;com.opentap.resource&lt;/param-value&gt;
  &lt;/init-param&gt;
  &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;jersey-serlvet&lt;/servlet-name&gt;
  &lt;url-pattern&gt;/api/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p>In Controller</p>
  
  <pre><code>@POST
  @Consumes(MediaType.APPLICATION_JSON)
  @Produces(MediaType.APPLICATION_JSON)
  public Response login(@QueryParam("sessionId") String sessionId,@QueryParam("jCryptions") String encryptedString) throws IOException {
  </code></pre>
  
  <p>I've put sysout inside this. Every time it's returning the null value. I tried different methods to receive the data like changing the QueryParam and PathParam. But none worked. I can't figure out what is wrong here. But If I test it through rest-client in firfox by sending the data through url as POSt, it works. I need it be same on by using AjaX</p>