JSON Validator

JSON Validator

Check whether your JSON is valid against the JSON standard (RFC 8259). If it isn’t, the validator points to the line and column of the problem, shows the line itself and suggests the likely fix. Valid JSON gets a structure summary.

RFC 8259 strictLine and column of errorsFix hintsLast updated: November 3, 2026

Validate JSON

How validation works

The text is parsed with the browser’s strict JSON parser, which follows RFC 8259 and ECMA-404. That means no comments, no trailing commas, no single quotes and no unquoted keys, even though JavaScript itself allows some of these.

Error messages explained

MessageUsual causeFix
Unexpected token / Expected property nameUnquoted key, single quotes or a trailing commaUse double quotes; remove the last comma
Expected ‘,’ or ‘}’Missing comma between itemsAdd a comma after the previous value
Unexpected end of JSON inputUnclosed { or [Add the closing bracket
Bad control character in stringA raw line break or tab inside quotesWrite \n or \t
Unexpected non-whitespace characterTwo values without a wrapping arrayWrap them in [ ] and separate with commas

JSON data types

TypeExample
Object{"key": "value"}
Array[1, 2, 3]
String"hello"
Number42, -3.5, 1e6
Booleantrue, false
Nullnull

Frequently asked questions

Is a single number or string valid JSON?

Yes. Since RFC 7159, any JSON value, such as 42 or "text", is a valid JSON document, although most APIs send an object or array.

Does it validate against a JSON Schema?

No, it checks syntax only. Schema validation checks required fields and types for a specific API.

Is my JSON sent anywhere?

No. Validation runs in your browser.

Scroll to Top