jsonpp

Command-line JSON pretty-printer with formatting and validation

brewmacoslinux
Try with needOr install directly
Source

About

Command-line JSON pretty-printer

Commands

jsonpp

Examples

Pretty-print a JSON file with indentation$ jsonpp < input.json
Validate and format minified JSON from stdin$ echo '{"name":"test","value":123}' | jsonpp
Pretty-print JSON with custom indentation$ jsonpp --indent 2 < data.json