jsonecho

JSON5 Validator

Check that your JSON5 file is valid and see where it is not.

Loading the tool...

How to use JSON5 Validator

  1. Paste your JSON5.
  2. A green bar means it is valid. A red one shows the line and column of the problem.

About JSON5 Validator

JSON5 relaxes the rules of JSON, but it is not a free-for-all. A missing bracket or an unterminated string is still an error. This validator applies the JSON5 grammar and tells you where the text stops making sense.

If your file passes here but fails in your application, the application is probably using a strict JSON parser. Convert it with the JSON5 formatter.

Frequently asked questions

Why does my file pass here but fail in my app?

Your app is most likely using a standard JSON parser. Run the file through the JSON5 Formatter to get strict JSON.

Does this validate against a schema?

No, only the syntax.

Are comments with /* */ and // both accepted?

Yes, both styles are part of JSON5.

More in JSON Tools

All tools →