JSON Validator & Formatter CLI — Lint and Beautify JSON
A fast, zero-dependency JSON validator that can pretty-print, minify, and sort keys. Perfect for CI pipelines and everyday JSON debugging.
Features
- Validate JSON syntax with line-level error reports
- Pretty-print with configurable indentation
- Compact (minified) output mode
- Sort object keys alphabetically
- Read from file or stdin (pipe support)
Usage
# Validate a file
json_validator validate data.json
# Pretty-print with sort-keys
json_validator format data.json --sort-keys
# Compact / minified output
json_validator format data.json --compact
# Pipe input
echo '{"name":"test"}' | json_validator validate
Install
pip install neuralmint/json-validator
Support open-source:
SOL: 4TGyiYBjaYhFFPNYyCoJjf16ctUsWVBiMR1FXQxEfhWi
ETH: 0xe07f177E0725c11EEc8BeA34C5b5193CaF2a1A6a
Tags: python, cli, opensource, devtools
Series: neuralmint CLI Tools
Top comments (0)