JSON Validator

Check whether a string is valid JSON and report its top-level type.

Your workspace

Processed in your browser

Enter your values or try the example.

This validator checks whether a given string adheres to the JSON syntax standard. It confirms if the input is valid and identifies the top-level data type, such as an object, array, or null.

How to validate JSON

  1. Paste the JSON string you want to check into the input area.
  2. The tool will immediately report if the JSON is valid or provide an error message if the syntax is incorrect.

Syntax vs. Schema

This tool performs a syntax check only. It confirms that the string is well-formed JSON according to the standard specification. It does not validate the structure against a specific JSON Schema or check for required fields; it simply ensures the data is readable by JSON parsers.

Validation check

{"status": "ok"}

Valid JSON. Top-level type: object

Questions about validation

Does this check if my JSON matches my API requirements?

No. This tool only checks for valid syntax. It cannot verify if your JSON contains the specific keys or values expected by your application.

What does 'Top-level type' mean?

It indicates the primary structure of your JSON, such as whether the root is an object {}, an array [], or a primitive value like a string or number.

Continue your workflow

Explore more tools in this category for your next step.