E001Error

Unexpected character

A character appeared that is not part of JSON syntax.

What it means

JSON only allows a fixed set of characters outside of strings: braces, brackets, colons, commas, digits, and the literals true/false/null. A stray symbol such as @, #, or a smart punctuation mark stops the parser.

Example

Invalid
{ "price": @19.99 }
Valid
{ "price": 19.99 }

How to fix it

Remove or replace the stray character with valid JSON syntax.

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.