JSON parser

Paste JSON to check whether it is valid and identify the type of its root value.

JSON parser

Parsing happens in your browser.

Result

✓Valid JSON

Value type
object
Root keys
3

JSON parser

Inputs

JSON
{"name":"Ada","active":true,"score":42}

How it is calculated

The text is read with the browser’s built-in JSON parser.

Result

Valid JSON

✓
Value type
object
Root keys
3

How it is calculated

  1. The text is read with the browser’s built-in JSON parser.
  2. Objects, arrays, strings, numbers, booleans and null are recognized.
  3. When parsing fails, the parser message points to the problem.

Example

{"name":"Ada","active":true,"score":42}

Good to know

  • JSON uses strict syntax: keys and strings need double quotes, and comments are not allowed.
  • The parser checks syntax, not what the data means.

When to use it

  • Find the error in a JSON file that an app refuses to load.
  • Check an API response before using it in code.
  • To browse a large valid file, use the JSON viewer.

Frequently asked questions

Why does a trailing comma break my JSON?

JSON does not allow a comma after the last item of a list or object. JavaScript accepts it, which is why the mistake is common.

Is JSON the same as a JavaScript object?

No. JSON is text with stricter rules: no functions, no undefined and no single quotes. It must be parsed to become an object.

What about JSON5 or JSONC?

They are relaxed formats that allow comments and trailing commas, used for some config files. Standard JSON parsers refuse them.

Updated October 11, 2026

Indicative result. For an important decision, check with a professional.