Przykłady JQ
echo '{"fruit":{"name":"apple","color":"green","price":1.20}}' | jq '.'
Tiago F2
echo '{"fruit":{"name":"apple","color":"green","price":1.20}}' | jq '.'
$ json='[{"genre":"deep house"}, {"genre": "progressive house"}, {"genre": "dubstep"}]'
$ echo "$json" | jq -c '.[] | select(.genre | contains("house"))'
{"genre":"deep house"}
{"genre":"progressive house"}
jq '.' fruit.json
echo '{"node1":"foo", "node2":"bar","node3": {"inner-node": "baz"}}' | jq '. |=keys'
[
"node1",
"node2",
"node3"
]