A document with a trailing comma
{ "a": 1, "b": 2, }Line 1, column 19 — a property name was expected
Check whether a document is valid JSON and get the line, column and reason when it is not.
Nothing to show yet. Enter something above to get started.
Was this tool useful?
Validating JSON answers one question: will a parser accept this document? That is worth isolating from formatting, because when an integration fails you usually want to know whether the payload is even syntactically valid before you look at anything else.
When the answer is no, the useful part is where. This validator reports the line, the column and what the parser expected at that point, along with the offending line so you can see the problem in context.
{ "a": 1, "b": 2, }Line 1, column 19 — a property name was expected