Formatting Rules
- 2 or 4 space indentation (configurable)
- Proper line breaks for objects and arrays
- Colon spacing consistency
- Automatic error detection and correction
- Preserves original JSON structure
Formatted JSON will appear here...
Error | Example | Fix |
---|---|---|
Missing quotes | { key: "value" } | { "key": "value" } |
Inconsistent indentation | Mixed tabs/spaces | Choose either tabs or spaces |
Unclosed brackets | {"a": [1, 2 | {"a": [1, 2]} |