title: How to access parameters in a RESTful POST method
body: <p>My POST method looks like this:</p>
  
  <pre><code>@POST
  @Consumes({"application/json"})
  @Path("create/")
  public void create(String param1, String param2){
      System.out.println("param1 = " + param1);
      System.out.println("param2 = " + param2);
  }
  </code></pre>
  
  <p>When I create a Jersey Client in Netbeans the method who calls the post method looks like this:</p>
  
  <pre><code>public void create(Object requestEntity){
      webResource.path("create").type(MediaType.APPLICATION_JSON).post(requestEntity);
  }
  </code></pre>
  
  <p>When running this test:</p>
  
  <pre><code>@Test
  public void hello(){
      String json = "{param1=\"hello\",param2=\"hello2\"}";
      this.client.create(json);
  }
  </code></pre>
  
  <p>It gives the following output in the server:</p>
  
  <pre><code>INFO: param1 = {param1="hello",param2="hello2"}
  INFO: param2 = 
  </code></pre>
  
  <p>What do I need to change so that the parameters are giving the correct value?</p>