best-json-formatter
Installation
SKILL.md
Best JSON Formatter
Use the bestjsonformatter npm CLI through its short bjf binary when installed locally. Otherwise
run the pinned package through npx.
Check JSON
Run the combined correctness check before editing or committing JSON:
npx -y bestjsonformatter@latest check path/to/file.json --json
Treat exit code 0 as clean, 1 as invalid or correctness findings, and 2 as a command failure.
Report exact paths, issue codes, and source locations. Never dismiss duplicate keys or unsafe-number
findings merely because JSON.parse accepts the document.
Validate against a schema when one is in scope: