Explanation
How JSON Formatter works
JSON (JavaScript Object Notation) is a text-based data format defined in RFC 8259. This tool checks whether an input is valid JSON and then outputs it indented ("Pretty-Print"). The values themselves remain unchanged.
In the event of a syntax error, the parser's message is displayed, with line and column where possible, to quickly find the location of the error. Typical causes are single instead of double quotes, missing or excess commas, and comments, which JSON does not allow.
Limitations of this tool
- Validation and indentation only — deliberately no minify.
- Strict JSON standard — no comments, no trailing comma.
- No schema matching and no semantic validation of the values.
Sources
- RFC 8259: The JavaScript Object Notation (JSON) Data Interchange Format. IETF, 2017.
- ECMA-404: The JSON Data Interchange Syntax.