title: Play Framework and jQuery Ajax request with data as Array
body: <p>I am sending an Array of values through Ajax via jQuery with a Play Framework backend, and I'm in front of a problem.</p>
  
  <p>Here's an example :</p>
  
  <pre><code>$.ajax ({
      'type':     'POST',
      'url':          '/url',
      'timeout':  5000,
      'data':     {'ids': [0, 1, 2, 3]},
      'dataType': 'json',
      'success':  function (oData) {
          // Process ...
      }
  });
  </code></pre>
  
  <p>But in Play!, if I do a <code>params.get("ids");</code>, I got an empty value, and if I do a <code>params.getAll("ids");</code> also.</p>
  
  <p>I know where the problem is, jQuery send the data as : <code>ids[]=0&amp;ids[]=1&amp;ids[]=2&amp;ids[]=3</code>
  but Play! Framework expect array data to be sent as <code>ids=0&amp;ids=1&amp;ids=2&amp;ids=3</code></p>
  
  <p>Is there a proper way to send the data properly (or get the data as an array in my controller) ?</p>
  
  <p>So far, I managed to make it works simply but creating the request as a String manually in javascript.</p>
  
  <p>Thanks for your help.</p>