title: Error in submitting List of objects to apache-cxf jax-rs (REST) service
body: <p>I want to post List of Customers in JSON in the following way:</p>
  
  <pre><code>@POST
  @Path("/addCustomers/")
  @Consumes(MediaType.APPLICATION_JSON)
  public List&lt;Customer&gt; addCustomers(List&lt;Customer&gt; list){
  logger.debug(list);
      return list;
  }
  
  Request Header:
  Content-Type: application/json
  
  Request Body:
  {"Customer":[{"id":2999,"name":"Som Awasthi"},{"id":3000,"name":"Arnav Awasthi"}]}
  
  Response: "415: Unsupported Media Type" error.
  </code></pre>
  
  <p>Input to this request is same, what I have got in the listCustomers call, which is as follows:</p>
  
  <pre><code>@GET
  @Path("/listCustomers")
  public List&lt;Customer&gt; listCustomers(){
  List&lt;Customer&gt; list = new ArrayList&lt;Customer&gt;();
  list.add(new Customer("Som Awasthi", 2999L));
  list.add(new Customer("Arnav Awasthi", 3000L));
  
  return list;
  }
  </code></pre>
  
  <p>So I expected that input should give me List object. But it is giving me Unsupported Media Type error.</p>
  
  <p>Regards,
  Arnav </p>