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.

You can also try jq without installing, with this online service:

https://jqplay.org/


More information and downloads

https://jqplay.org/
https://jqplay.org/


Suggested readings

Comments