E015Error

Invalid escape sequence

A backslash was followed by a character that is not a valid escape.

What it means

Inside a JSON string a backslash starts an escape. Only \" \\ \/ \b \f \n \r \t and \uXXXX are allowed. A backslash before any other character — common in unescaped Windows paths — is an error.

Example

Invalid
{ "path": "C:\Users" }
Valid
{ "path": "C:\\Users" }

How to fix it

Double every backslash, or use a valid escape sequence.

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.