qp

Command-line tool for querying and processing (ND)JSON data

brewmacoslinux
Try with needOr install directly
Source

About

Command-line (ND)JSON querying

Commands

qp

Examples

Query a specific field from JSON data$ echo '{"name": "John", "age": 30}' | qp .name
Process newline-delimited JSON with filtering$ cat data.ndjson | qp 'select(.age > 25)'
Extract and transform multiple fields from JSON$ echo '{"user": {"id": 1, "email": "test@example.com"}}' | qp '.user | {id, email}'