Introduction
Invalid JSON can break applications. Understanding standard errors is key to fast debugging.
Common Issues
1. **Trailing Commas:** JSON standard (RFC 8259) forbids commas after the last element.
- *Bad:* `{ "a": 1, }`
- *Good:* `{ "a": 1 }`
2. **Unquoted Keys:** All keys must be strings in double quotes.
- *Bad:* `{ key: "value" }`
- *Good:* `{ "key": "value" }`
3. **Mismatched Brackets:** Every opening `{` or `[` must have a matching closing one.
Using the Validator
Paste your code into the tool below. It will highlight the exact line and column of compliance errors so you can fix them immediately.