Very useful tool indeed. Worth investing some time in if you like doing data processing on the command line.
Stuff I do with it:
- prepare json request bodies for curl commands by constructing json objects using environment variables
- grab content from a deeply nested json structure for usage in a script
- extract csv from json
- pretty print json or ndjson output curl ... |jq -C '' | less -r. I actually have an alias set up for that.
The syntax is a bit hard to deal with. I find myself copy pasting from stack overflow a lot when I know it can do a particular thing but just can't figure out how to do it.
Stuff I do with it:
- prepare json request bodies for curl commands by constructing json objects using environment variables
- grab content from a deeply nested json structure for usage in a script
- extract csv from json
- pretty print json or ndjson output curl ... |jq -C '' | less -r. I actually have an alias set up for that.
The syntax is a bit hard to deal with. I find myself copy pasting from stack overflow a lot when I know it can do a particular thing but just can't figure out how to do it.