Skip to content
Calculator Tools
Developer Tools

JSON Validator

Check whether JSON is valid and get the exact line and column of the first error.

Enter values

Results update as you type.

Result

Result

Valid JSON

No structural problems found.

Root type
Object
Total keys
3
Scalar values
5
Nesting depth
3
Size
49 B
Objects and arrays
1 objects, 1 arrays

About the JSON Validator

Check whether JSON is valid and get the exact line and column of the first error.

Also known as: validate json, json syntax checker, json lint, is my json valid.

How to use this calculator

  1. Enter json to validate.
  2. The result updates instantly as you type — press Calculate (or Enter) at any time.
  3. Review the breakdown shown under the main result.
  4. Use Copy result or Share to save the answer or send a link with your inputs.

Formula

Parsed with the JSON specification’s own rules

Worked example

Using the values pre-filled in the calculator above:

  • JSON to validate: { "id": 1, "items": [1, 2, 3], "ok": true }

the calculator returns:

  • Result: Valid JSON
  • Root type: Object
  • Total keys: 3
  • Scalar values: 5