JSON parser
Paste JSON to check whether it is valid and identify the type of its root value.
Result
✓Valid JSON
- Value type
- object
- Root keys
- 3
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
- The text is read with the browser’s built-in JSON parser.
- Objects, arrays, strings, numbers, booleans and null are recognized.
- 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.
Frequently asked questions
What is this tool used for?
Paste JSON to check whether it is valid and identify the type of its root value.
How is the result calculated?
The text is read with the browser’s built-in JSON parser.
What should I check before using the result?
JSON uses strict syntax: keys and strings need double quotes, and comments are not allowed.