E003Error

Unexpected identifier

A bare word was found where a value was expected.

What it means

Unquoted words are not JSON values. Only true, false, and null are allowed as bare literals; anything else must be wrapped in double quotes to be a string.

Example

Invalid
{ "status": active }
Valid
{ "status": "active" }

How to fix it

Quote the word to make it a string, or use true/false/null.

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.