title: Can I accept JSONObject as parameter in Rest API?
body: <p>My code is as follows:</p>
  
  <pre><code>@Path("/test")
  public class Test {
  
  @POST
  @Path("/postSomething")
  @Produces(MediaType.APPLICATION_JSON)
  @Consumes(MediaType.APPLICATION_JSON)
  public RestMessageResponse postSomething(JSONObject inputJSONObject) {
     ..do something
  }
  }
  </code></pre>
  
  <p>when I send a post request to the appropriate url, it doesn't reach the code.</p>