How it works
- Paste JSON or select a .json file.
- Press Validate JSON.
- Read the valid result or use the reported line and column to locate the syntax problem.
- Correct the input and validate again.
Practical example
{"name":"Ada",} fails because JSON forbids a trailing comma. The validator identifies the parser location instead of silently changing the input.
Formula and explanation
A JSON validator checks syntax, not whether the values satisfy your application's business rules. Valid JSON may be an object, array, string, number, boolean or null. Whether particular keys are required needs a JSON Schema or application-specific check.
Frequent errors include single quotes, unquoted property names, comments, missing commas, trailing commas and unclosed brackets. The validator retains the original text so you can compare the parser message with the exact source.
Validation runs entirely in the browser with the native standards-compliant parser. Nothing pasted into the editor is included in Analytics or transmitted to Cifrivo.