Dec 5, 2018 jq: Filter JSON Array by Value Print the JSON object in an array where the object key is equal to the specified value with jq: 1234$ echo '[{"key":"foo"},{"key":"bar"}]' | jq '.[] | select(.key == "foo")'{ "key": "foo"} Reference: 12$ jq --versionjq-1.5