Overview
The sed/awk of JSON. Slice, filter, and reshape API responses — the universal glue for scripted workflows.
Features
- Powerful query language
- Streaming for big files
- Pairs with curl and shell pipes
- Extensible functions
- Single-file cross-platform binary
Common commands
A few common invocations — the Agent runs them as you in your terminal
$ curl -s api.example.com | jq '.data[] | .name'Pluck a field from an API response
$ jq '.users | length' data.jsonCount items in an array
$ jq -s 'add' a.json b.jsonMerge multiple JSON files