JSON
Tools which I use for manipulating JSON and YAML files.
- jq JSON processor.
- yq Like jq but for YAML and even more.
- fx JSON (and YAML) command-line interactive viewer and processor.
Snippets
Simple conversions:
cat data.yaml | yq --tojson
cat data.json | yq -P
Search:
cat data.json | jq ".[]" | select(.key == "value")'