Pretty print and query JSON data from the command line.
Lightweight and flexible command-line JSON processor. Pretty print JSON, parse and query JSON data, filter and transform JSON on the command line.
jq$ echo '{"name":"john","age":30}' | jq$ echo '{"name":"john","age":30}' | jq '.name'$ echo '[{"name":"john","age":30},{"name":"jane","age":25}]' | jq '.[] | select(.age > 26)'$ echo '{"first":"john","last":"doe"}' | jq '{name: (.first + " " + .last)}'$ jq 'length' data.json