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
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:
More information and downloads
- Tom Marrs: “JSON at Work: Practical Data Integration for the Web”