How to use the JSON validator

  1. Paste or type JSON into the editor. It's checked as you type.
  2. If it's valid, you'll see a summary: the type of the top-level value, its size, depth and number of properties.
  3. If it isn't, you'll see the line and column of the first error, the line itself with a marker under the problem, and an explanation. Select Go to error to jump to it in the editor.

What it checks

The validator follows the JSON standard (RFC 8259) strictly, the same rules used by System.Text.Json, JSON.parse and most APIs. It explains the most common mistakes in plain English:

  • Trailing commas after the last property or array item
  • Single quotes instead of double quotes around strings or property names
  • Unquoted property names, as in JavaScript object literals
  • Comments (// and /* */), which JSON doesn't allow
  • Invalid numbers: leading zeros, NaN, Infinity, hexadecimal and a leading +
  • Unescaped line breaks and tabs inside strings, and invalid escape sequences
  • Missing commas, brackets and braces, including where an unclosed object or array started
  • Duplicate property names, reported as a warning because most parsers keep only the last value

Frequently asked questions

Is my JSON uploaded?

No. Validation runs entirely in your browser; nothing you paste is sent to our servers or logged.

Does it support JSON with comments (JSONC) or JSON5?

No. It validates standard JSON, which is what APIs and most libraries expect. Configuration formats such as JSONC (used by VS Code) and JSON5 are supersets of JSON, so valid JSONC can still fail here.

Does it validate against a JSON Schema?

Not yet. It checks syntax: whether the text is well-formed JSON, not whether it matches a particular structure.