jq: a lightweight and flexible command-line JSON processor
Like ‘sed’, for JSON data
jq is like sed
for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed
, awk
, grep
and friends let you play with text.
jq can mangle the data format that you have into the one that you want with very little effort, and the program to do so is often shorter and simpler than you’d expect.
In this brief video made by Yu-Jie Lin, you can see jq in action, processing some data from YouTube GData API.
[embed]https://www.youtube.com/watch?v=NzqBhHVJMDI[/embed]
You can also try jq without installing, with this online service:
[embed]https://jqplay.org/[/embed]
More information and downloads
[embed]https://jqplay.org/[/embed]
[embed]https://jqplay.org/[/embed]