title: Obtaining List or array of long as a parameter using jax-rs and jersey
body: <p>I use JAX-RS and Jersey. I have method like that. And it doesn't work for me. </p>
  
  <pre><code>@POST
  public Response addOrder(List&lt;Long&gt; ids) {
      ...
  }
  </code></pre>
  
  <p>When I send request using Postman I got an error.</p>
  
  <pre><code>Can not deserialize instance of java.util.ArrayList out of START_OBJECT token 
  at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@6befd3c2; line: 1, column: 1]
  </code></pre>
  
  <p>My request:</p>
  
  <pre><code>{
  "ids": [1, 2, 3]
  }
  </code></pre>
  
  <p>Is there any ways to make it work?</p>