title: cURL GET query string is a JSON
body: <p>I am try to access the remote RESTful Services API using cURL, the query string parameter has a JSON value. My cURL command like:</p>
  
  <pre><code>curl -g -i 'http://localhost:8080/context/restdev/employees/?q={"deptno":{"$lte":20}}'
  </code></pre>
  
  <p>If I enter the URL in the Chrome, I can get the data back. My cURL command gets: The URI is not well-formed, reason: Illegal character in query at position: 48</p>