title: Reading the contents of a body of a POST request in java (using REST)
body: <p>Suppose I make a POST request using POSTMAN and have a body in json format. I want to read the contents of body and pass it in a method. How to do it ? </p>
  
  <p>I can see that there is @QueryParam, @PathParam, @HeaderParam etc annotation are used to read the parameters. I don't get how to read body.</p>
  
  <p>say body is<br>
  <code>{
  "param1":"value1",
  "param2":"value2",
  "param3":"value3",
   }</code></p>
  
  <p>ServerSide java code: </p>
  
  <p><code>@POST</code></p>
  
  <p><code>@Path("/myresource")</code></p>
  
  <p><code>public Response addParams( String param1, String param2, String param3)</code>
  <code>{</code>
   <code>do somthing.</code>
  <code>}</code></p>
  
  <p>So I wanted this param1,param2,parmam3 values to be read from requestbody. Is it possible ?</p>