JSON Validator

Find out whether a document is valid JSON and, if it is not, where it breaks: the line and column of the first error, with the common causes (trailing commas, single quotes, unquoted keys, comments) called out.

Open JSON Validator

Where to find it

Every address below opens the same tool. The first address is the one to bookmark and share.

People also call this

What it's for: Check JSON and find the exact error. Find out whether a document is valid JSON and, if it is not, where it breaks: the line and column of the first error, with the common causes (trailing commas, single quotes, unquoted keys, comments) called out..

What trips people up: Why is a trailing comma an error? JSON is stricter than JavaScript. A comma after the last item in an object or array is not allowed by the JSON specification, even though most JavaScript engines accept it in code.

Use it from code

curl -X POST https://openvibe.tools/api/v1/tools/jsonvalidate/run \
  -H 'Content-Type: application/json' \
  -d '{"input":{"text":"{\"a\":1,}"}}'

Inputs: JSON Schema · OpenAPI · from JavaScript: tools.run("jsonvalidate", …) in openvibe-sdk · How the API works

Similar tools

All Developer Tools