title: Jersey POST Method is receiving null values as parameters
body: <p>I am developing RESTful services with Jersey and it works great with GET methods. However I can't make it work with POST methods and JSON or text parameters. These is what I did:</p>
  
  <pre><code>@Path("/method/")
  @POST
  @Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN})
  @Produces({MediaType.APPLICATION_JSON})
  public ResponseObject method(@Context Request request, @PathParam("ob1") Object obj1, @PathParam("obj2") String obj2) {
  ...
  }
  </code></pre>
  
  <p>I am only getting null values for all params. I have tried to use just a string as parameter and it doesn't work either ... I am trying to access these methods from IOS and maybe that's one of the problems. However I have been sniffing my LAN and I can see the correct parameters in the packet body ... is this correct?? </p>
  
  <p>I have sent from XCode different body contents as:</p>
  
  <pre><code>obj1={"id1": "value1", "id2" : "value2"}&amp;obj2=xxxx
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>{"id1": "value1", "id2" : "value2"},xxxx
  </code></pre>
  
  <p>while I have been playing with @QueryParam and @PathParam without results...always null...</p>
  
  <p>Thanks for your help!</p>