jq

Lightweight command-line JSON processor for parsing and transforming JSON

brewmacoslinux
Try with needOr install directly
Source

About

Lightweight and flexible command-line JSON processor

Commands

jq

Examples

Pretty-print JSON from a file$ jq '.' data.json
Extract a specific field from JSON$ echo '{"name":"John","age":30}' | jq '.name'
Filter array of objects by condition$ jq '.[] | select(.age > 25)' users.json