jq
jq is a lightweight and flexible command-line JSON processor.
It’s 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.
If you have YAML instead of JSON, yq is nice to use as well.
References
- https://stedolan.github.io/jq/
- jq examples