title: Angular http request with json param
body: <p>In my RESTful api one of the resources exposes a GET method that accept json as a parameter named 'query'. This parameter is passed directly to the MongoDB query allowing users to query the database directly using mongo syntax.</p>
  
  <p>The problem I'm having is that the request always looks like this: </p>
  
  <pre><code>?&amp;query=%7B%22source%22:%22incident%22%7D 
  </code></pre>
  
  <p>Where it should look something like this:</p>
  
  <pre><code>?&amp;query={'source': 'incident'} 
  </code></pre>
  
  <p>This is how I am sending the GET request:</p>
  
  <pre><code>var query = {};
  if ($scope.sourceFilter) { query.source = $scope.sourceFilter; }
      var query = JSON.stringify(query);
      $http.get('/api/feedbackEntries', {params: {limit: $scope.limit, query: query}}).success(function(data) { .......
  </code></pre>
  
  <p>I am doing the same thing on other get requests and I don't get this issue. </p>
  
  <p>Am I doing something wrong here ? Is this to do with the way angular parses params ?</p>
  
  <p>Thanks</p>