Skip to content
Web Codes Stack
Explore Free Tools

JSON Validator

Check whether your JSON follows the syntax rules and find where parsing fails.

How to use it

  1. Paste the JSON you want to check. Select Load invalid example to try a document with an error.
  2. Select Validate JSON and inspect the feedback. When a position is available, check the indicated line and column.
  3. Correct the input and validate again. You can copy the validation result to include in a bug report.

Practical example

Find a trailing comma in a configuration

{
  "retries": 3,
  "enabled": true,
}

Validation fails at the end of the object. Remove the comma after true and run the check again.

Frequently asked questions

How is this different from JSON Schema validation?

This tool checks whether a document is valid JSON. JSON Schema validation checks parsed JSON against rules such as allowed properties, types and required fields.

Why can the error appear after the actual typo?

The error marks where the parser first encountered something unexpected. Inspect the preceding token for a missing quote, colon or comma.

Is an empty editor valid JSON?

An empty editor contains no JSON value. Use null, an empty object or an empty array when that value reflects what the consumer expects.

Why do duplicate property names trigger a warning?

JSON parsers can handle repeated names differently. Use one name per object property for predictable results across systems.

Related tools

JSON Formatter

Pretty-print or minify JSON with two-space or four-space indentation.

Open tool

JSON Repair

Preview targeted fixes for common syntax mistakes and review the proposed changes.

Open tool

JSON Schema Generator

Generate a starter Draft 2020-12 schema from a sample JSON document.

Open tool