title: How to request curl http and parse the JSON response in shell script?
body: <pre><code>URL=$(curl -i -X GET -H "Authorization: Basic token=" -H "Cache-Control: no-cache" -H "http://company url:8080/v1/organizations/wiley/environments/api-team-ci1/stats/apis?select=sum(is_error)&amp;timeRange=01/24/2017%2002:00~01/25/2017%2006:00") 
  </code></pre>
  
  <p>URL should return a JSON response which I need to parse and grab some values. Not even getting response from the curl command; getting only "curl: no URL specified!" error. Please help me and direct as I am trying to do it for the first time.</p>