jsonlint

Parses and validates JSON files with detailed error reporting

brewmacoslinux
Try with needOr install directly
Source

About

JSON parser and validator with a CLI

Commands

jsonlint

Examples

Validate a JSON file$ jsonlint myfile.json
Validate JSON from stdin$ echo '{"name": "test"}' | jsonlint
Pretty-print and validate JSON$ jsonlint -c myfile.json