E007Error

Leading comma in object

An object starts with a comma before its first member.

What it means

Commas separate members; they do not precede the first one. A leading comma is usually left behind after deleting the original first property.

Example

Invalid
{ , "a": 1 }
Valid
{ "a": 1 }

How to fix it

Delete the comma before the first member.

Validate your JSON to see this and every other issue highlighted in one pass.


Diagnostics on this page come from @jsonlint/core, the open-source engine that powers the JSONLint validator. Install it with npm install @jsonlint/core.