title: JSON list of primitive values to RESTeasy webservice.
body: <p>I have some REST webservice method defined as this:</p>
  
  <pre><code>@GET
  @POST
  @Path("/blabla")
  @Consumes({ "application/json", "application/xml" })
  @Produces({ "application/json", "application/xml" })
  @Wrapped
  List&lt;SomeDto&gt; getSomething(
  @QueryParam("destination") Long destId,
  @QueryParam("parentsIds") List&lt;Long&gt; parents);
  </code></pre>
  
  <p>and when I try to submit JSON data as:</p>
  
  <pre><code>urlData: { destination: targetId, parentsIds: [selectedParentId, 31445] }, 
  </code></pre>
  
  <p>I get an exception</p>
  
  <pre><code>Unable to extract parameter from http request: javax.ws.rs.QueryParam("parentsIds") value is '31404,31445' for public abstract java.util.List
  </code></pre>
  
  <p>How can I pass list of primitives via JSON to RESTeasy webservice ?</p>