Developer tool

JSON Validator

Validate JSON syntax and read the parser error when the document is invalid. No schema checking and no silent pass.

How to use JSON Validator

  1. Paste the JSON document.
  2. Run validate.
  3. If it fails, fix the reported parse issue and try again.

Examples

Trailing comma

{"a":1,} is invalid JSON and should fail.

Valid object

{"a":1,"b":[true,false]} should report Valid JSON.

Privacy

Validation is local.

FAQ

Is this JSON Schema validation?

No. It only checks that the text is well-formed JSON.

Why keep formatter and validator separate?

Formatter rewrites whitespace. Validator answers pass or fail without changing the document.

Empty input?

Empty input is treated as invalid because there is nothing to parse.

Related tools