Use jq to query and manipulate JSON data
jq is a lightweight command-line tool to quickly process your JSON data.
I mainly use it to search (
grep) and select specific fields of a JSON file, but it can also be used to transform (
sed) and process (
awk) the data.
Of course, the output is also nicely formatted.
If this peaks your interest head over to the download page.
While these examples are simple and are using a local data source, you can feed data to
jq using the pipe (
I appreciate it if you would support me if have you enjoyed this post and found it useful, thank you in advance.