title: How to read JSON message in request on RESTful service side.
body: <p>I'm trying to read JSON data sent from a client on a service. 
  Whatever I try I'm getting an empty object in the console. 
  //My service</p>
  
  <pre><code> @Path("signup")
      public class signupservice {
  
  
            @POST
            @Consumes(MediaType.APPLICATION_JSON)
            @Produces(MediaType.APPLICATION_JSON)
            public JSONObject Signmeup( JSONObject inputJsonObj) throws JSONException {
  
              String fname  = inputJsonObj.toString();   
              System.out.println(fname);   
              JSONObject outputJsonObj = new JSONObject();
              outputJsonObj.put("output", "output");
              return outputJsonObj;
            }
      }
  </code></pre>
  
  <p>I'm sending the request from postman.<a href="https://i.stack.imgur.com/Rtflc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rtflc.png" alt="Postman setup"></a> </p>