curl and jq 8 · jq: filter and transform JSON
Get a field without quotes
Output raw strings instead of JSON strings, handy in scripts.
jq -r '.name' user.json
Official curl and jq 8 documentation
More jq: filter and transform json commands
- Pretty-print JSON
- Get a field
- 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