parsing data from the API using jq

parsing data from the API using jq


I want to create 80 canned reports, one for each monitoring group.  I don't want to do this by hand, that's what shell and the API is for.


This works ok:

  1. # curl https://www.site24x7.com/api/monitor_groups     -H "Accept: application/json; version=2.0"     -H "Authorization: Zoho-authtoken $token" | jq  '.[] '

But after that ..

  1. # curl https://www.site24x7.com/api/monitor_groups     -H "Accept: application/json; version=2.0"     -H "Authorization: Zoho-authtoken $token" | jq  '.group_id'
  2. null
I'm reading the jq manual and tutorials but .. I could use a few tips, if you've got any.

Edit;

The point of the exercise is to pull in the monitor group ID, and display name, then use those values to create the report.