title: Send array via GET request with AngularJS' $http service
body: <p>I need to send a GET request using the <code>$http</code> service. One of the parameters will be an array of ids. The url looks like this one <strong>mysite.com/items?id[]=1&amp;id[]=2&amp;id[]=3&amp;id[]=4</strong></p>
  
  <p>I tried this approach</p>
  
  <pre class="lang-js prettyprint-override"><code>$http(
    method: 'GET',
    url: '/items',
    params: {
      id: ids // ids is [1, 2, 3, 4]
    }
  )
  </code></pre>
  
  <p>but the url I obain is <strong>mysite.com/items?id=%5B%221%22%2C%222%22%2C%223%22%2C%224%22%5D</strong></p>
  
  <p>That's Because Angular is converting my value in a JSON string. Is there a way to get the behavior I want?</p>
  
  <p><strong>[Update]</strong></p>
  
  <p>I solved the issue thanks to Jonathan's suggestion using jQuery's <code>$.param()</code>.</p>
  
  <pre class="lang-js prettyprint-override"><code>$http(
    method: 'GET'
    url: '/items?' + $.param({id: ids})
  )
  </code></pre>