jq do?command-line JSON processor (apply a filter to JSON input).
▸ Explain your own jq command →$ jq -r '.items[] | select(.age > 30) | .name' data.json
| -r | raw output — print strings without JSON quotes |
| -j | raw output with no trailing newline between results |
| -c | compact output — one JSON result per line |
| -n | don't read input; use null as the input |
| -s | slurp — read the whole input stream into one array |
| -R | read raw input — each line becomes a JSON string |
| -e | set the exit code from the last output (for scripting) |
| -S | sort object keys in the output |
| -a | output non-ASCII characters as \uXXXX escapes |
| -f | read the filter program from a file |
| -arg | define a string variable: --arg name value |
| -argjson | define a JSON variable: --argjson name json |
| -tab | indent the output with tabs |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.