JSON Validator
The JSON Validator checks whether your JSON text is syntactically correct and reports the exact line and character position of any error found.
How to Use
- Paste your JSON into the input box.
- Click Validate.
- See a success message or the exact error location.
Formula
Validation
Uses JSON.parse and catches SyntaxError to determine validity and report the error position.
Example
{"a":1,} → Error: trailing comma is not valid JSON.