How it works
Pretty mode parses the JSON and re-emits it with consistent indentation. Minify drops all whitespace for the smallest possible payload (about 15–25% smaller for typical config files). Errors include a position pointer — paste the message into your editor and jump straight to the problem.
FAQ
- Anything sent to a server?
- No.
JSON.parse+JSON.stringifyrun in your browser. - Why does my JSON say "Unexpected token"?
- JSON requires double-quoted keys, no trailing commas, no comments. Strict format. JSON5 / JSONC are different specs.
- Difference between formatting and validating?
- A successful round-trip implies validity. If parse fails, error message points at the offending position.
- Can it handle huge JSON?
- In-browser limit is roughly RAM. Multi-megabyte fine; multi-gigabyte better processed by a streaming parser.