title: How to send data map to a web service?
body: <p>I've got this code of my web service:   </p>
  
  <pre><code>    @POST
      @Produces(MediaType.APPLICATION_JSON)
      public static Response fillData(final Map&lt;String, Object&gt; data) {  
         ...  
         final byte[] file = ...
         return Response.ok(file).build();
  </code></pre>
  
  <p>How do I send the Map data to the service?</p>
  
  <pre><code>final javax.ws.rs.core.Response reponse = client.target(URL_REST).path("/path").request(MediaType.APPLICATION_JSON).post(?);
  </code></pre>
  
  <p>Here is a sample of my JSON file:</p>
  
  <pre><code>{
    "activity" : {
      "code" : "ACT_014",
      "title" : "FIGHTING"
    },
    "adress" : {
      "place" : "",
      "number" : ""
    }
  }
  </code></pre>
  
  <p>Thank you.</p>