Code and data

JSON Validator

Check JSON and find the exact error.

  • Free
  • Runs in your browser: nothing is sent
  • API: 120 runs a minute without an account
  • No sign-up

TryValid JSONTrailing comma

About 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.

  • Line and column of the first syntax error
  • Names the usual culprits: trailing commas, single quotes, comments
  • Summarises the structure when the document is valid
Questions · 1

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 · API

Input: text. No account needed within the free limit; a token with tools.tool.run raises it.

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

JSON Schema · OpenAPI · API docs