E014Error

Invalid \u escape

A \u escape was not followed by four hex digits.

What it means

Unicode escapes in JSON take the form \uXXXX, where XXXX is exactly four hexadecimal digits (0-9, a-f). Anything shorter, or with non-hex characters, is invalid.

Example

Invalid
{ "char": "\u12" }
Valid
{ "char": "\u0041" }

How to fix it

Provide four hex digits, e.g. \u00e9 for é.

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.