HTML Runner

JSON Validator

Check JSON syntax and read the browser parser’s error message for malformed input.

How to use JSON Validator

Paste a payload, select Validate, and use the reported position when available. Try adding a trailing comma to see the parser error.

Limitations

This check covers JSON syntax. It does not enforce a schema, detect duplicate keys, or validate business rules.

Frequently asked questions

Is a top-level string valid JSON?

Yes. Objects, arrays, strings, numbers, booleans and null are all valid JSON values.

Test your web code in the live HTML workspace.

Related resources