title: consuming array of json object in jersey in java
body: <p>to consume a single object in jersey I have my method like this </p>
  
  <pre><code> @POST
  @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
  @Produces(MediaType.APPLICATION_JSON)
  public Response postPerson(MultivaluedMap&lt;String, String&gt; personParams){
      ResponseBuilder response = Response.ok();
      return response.build();
      }
  
      its working well.
  </code></pre>
  
  <p>my doubt is how can i consume list of objects in jersey</p>
  
  <pre><code>    some thing like this 
  
  
  
   @POST
  @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
  @Produces(MediaType.APPLICATION_JSON)
      public Response postPerson(List&lt;Person&gt; person){
  
       ResponseBuilder response = Response.ok();
      return response.build();
  
        }
  </code></pre>
  
  <p>I did some googling but didn't found any working example.</p>