jshon

Parse, read, and create JSON from the command line

brewmacoslinux
Try with needOr install directly
Source

About

Parse, read, and create JSON from the shell

Commands

jshon

Examples

Extract a value from JSON by key$ echo '{"name": "John", "age": 30}' | jshon -e name
Parse nested JSON and extract array elements$ echo '{"users": [{"id": 1, "name": "Alice"}]}' | jshon -e users -a -e name
Pretty print and validate JSON$ cat data.json | jshon -C