title: How to use CURL to pass multiple json strings as data to a JAX-RS end point
body: <p>Related to this post, <a href="https://stackoverflow.com/questions/5553218/jax-rs-post-multiple-objects">JAX-RS Post multiple objects</a></p>
  
  <p>If my resource endpoint takes in <code>List&lt;String&gt;</code> </p>
  
  <p><code>
      @POST
      @Path("test")
      @Consumes(MediaType.APPLICATION_JSON)
      public void test(List&lt;String&gt; jsonStrings)
  </code></p>
  
  <p>How to call this resource end point using curl (command line)</p>
  
  <p><code>curl -X POST -H "Content-Type: application/json" http://localhost:port/path/to/endpoint/test -d '{} {}'</code></p>
  
  <p>The above command does not work</p>