curl and jq 8 · jq: filter and transform JSON
Pretty-print JSON
Format JSON with indentation and colors.
curl -s https://api.example.com/users | jq .
Official curl and jq 8 documentation
More jq: filter and transform json commands
- Get a field
- Get a field without quotes
- Iterate over an array
- Get a field from each element
- Filter elements
- Count elements
All jq: filter and transform json commands · curl and jq 8 cheatsheet