E024Error

Expected ':' after object key

A colon is missing between a key and its value.

What it means

Object members are written as "key": value. When the colon is dropped, the parser sees the value directly after the key and cannot pair them.

Example

Invalid
{ "name" "Ada" }
Valid
{ "name": "Ada" }

How to fix it

Add a colon between the key and its value.

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.