Skip to content
PocketCaliper
Language
Open menu

Runs locally in your browser

JSON Validator

Check whether JSON is syntactically valid and see the line and column of the first error. Validation stays in your browser.

Paste a payload when you only need a yes or no plus a pointer to the break. This validator does not pretty-print or minify the text.

JSON.parse runs in this tab. Invalid input never leaves the machine to be checked elsewhere.

How to use

  1. Paste the JSON to test.
  2. Run validate.
  3. Read the success state or the first error with line and column.

How it works

A parse success means the string is well-formed JSON. It does not prove a schema, types, or required keys.

When the engine reports a character position, the page maps it to a line and column so you can jump in the editor.

Examples

  • Trailing comma

    A list that ends with a comma fails parse. The pointer lands near the extra comma so you can delete it.

  • Single quotes

    Keys in single quotes are invalid JSON. The validator flags the first quote instead of silently rewriting.

FAQ

Does valid mean the API contract is right?

No. Valid means syntax only. Schema checks are out of scope.

Why is there no formatted output?

This page is a gate. Use the formatter to indent or the minifier to shrink.

Are duplicate keys reported?

JSON.parse keeps the last duplicate key in typical engines. That is still considered parseable.

Is the sample sent away?

No. Validation is local in this tab.

Related tools