JJSONForge
Get JSONForge

JsonForge · JSON errors

Bad escaped character in JSON

A lone backslash. JSON recognises only \" \\ \/ \b \f \n \r \t and \uXXXX; anything else after a backslash is invalid.

Windows paths are the usual victim — every backslash has to be doubled.

The smallest input that causes it

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

JSON.parse on that gives, verbatim:

Bad escaped character in JSON at position 13 (line 1 column 14)

The fix

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

That version parses.

Find it in your own document

Paste the JSON and get the error located by line and column, the document formatted, a schema inferred from it, and a diff against another version.

Open JsonForge

Other JSON errors