Cheatsheet Pages / jq Cheatsheet
How to print one JSON object per line with jq — -c
Log pipelines and line-oriented tools want compact output: one object, one line.
Every filter was executed against the cheatsheet's sample config.json with jq 1.7 before publishing; the sample file sits at the bottom of the cheatsheet so you can reproduce every output.
jq -c '.users' config.json
# output: [{"name":"ana","age":28},{"name":"bruno","age":17},{"name":"carla","age":34}]
