TOOLTIKI Lovable tool, really free
Developer Formatting

JSON validator

What to do
Indent

Property name must be a string literal

Processed in your browser · nothing is uploaded

Local · syntax only, not schema
Advertisement
320 × 100

Checks JSON against the actual grammar and points at the first thing that breaks it, with a line and column. The sample above has a trailing comma, which is the single most common cause.

How to use the json validator

1 Paste your input. The result appears immediately.
2 Pick the operation you want.
3 Copy the result, or save it as a file.

This validates syntax, not shape. JSON being valid tells you it parses; it says nothing about whether the fields your code expects are present or the right type. That is schema validation, a separate job done with JSON Schema. The distinction matters because "the JSON is valid" gets offered as a reason an integration should work when the real problem is a missing field or a number sent as a string. If you control both ends, a schema catches those; a syntax validator never will.

Questions

The three usual causes are a trailing comma after the last item, single quotes instead of double, and unquoted keys. All three are valid JavaScript and none is valid JSON.

ECMA-404 — the JSON data interchange syntaxMDN — JSON.parse()
Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING