title: Setting request body on JAX-RS 2.0 Client API With RestEasy
body: <p>My first question on this community that has helped me so much already.</p>
  
  <p>I'm using RestEasy and trying to do a <strong>POST</strong> request to a <strong>REST</strong> service sending a <code>JSON</code> object. The problem is that my <code>JSON</code> object keeps going as a request parameter and not in the request body, which is what I need.</p>
  
  <p>Here is how I'm doing it.</p>
  
  <pre><code>Invocation inv = target.request().buildPost(Entity.json(shipment));
  
  Response response = inv.invoke();
  </code></pre>
  
  <p>I've been looking for ours on how to put the JSON object into the request body but found nothing.</p>
  
  <p>Any ideas?</p>