jq Cheat Sheet
Parse file
jq < file.json
jq . file.json
Compact file
jq -c < file.json
jq -c . file.json
Select element from file
jq .key file.json
Select element from array within file
jq .key[].array_element file.json
Remove stringification from selected elements
jq -r .key file.json
Retrieve keys from file
jq keys file.json
Create custom object from file values
jq '{ foo: .key1, bar: .key2 }' file.json
Filtering selected values from file
jq 'select(.key == "value")' file.json
Combine with cURL
curl -s [URL] | jq .key file.json