title: Post empty body with Jersey 2 client
body: <p>How do I submit a post request with an empty body with a Jersey 2 client?</p>
  
  <pre><code>final MyClass result = ClientBuilder.newClient()
      .target("http://localhost:8080")
      .path("path")
      .queryParam("key", "value")
      .request(APPLICATION_JSON)
      .post(What to fill in here if the body should be left empty??, MyClass.class);
  </code></pre>
  
  <hr>
  
  <p><strong>Update:</strong> this works:</p>
  
  <pre><code>final MyClass result = ClientBuilder
      .newBuilder().register(JacksonFeature).build()
      .target("http://localhost:8080")
      .path("path")
      .queryParam("key", "value")
      .request(APPLICATION_JSON)
      .post(null, MyClass.class);
  </code></pre>