Json escape characters ampersand Isn't that a great alternative? – user. If you look into the source code of that UNESCAPE_JAVA (UNESCAPE_JSON), you will see that the \\ string get transformed into a single backslash \ as in unescapeJavaMap. 3. Special character Encoded sequence; Quotation mark But since I'm using the JavaScriptEncoder, I would expect it only to escape a '\' character as the documentation says, and not the ampersand (&) as well. So the JSON ends up with escape characters in it. Backslash (\): Used as an escape character. , missing backslashes, incorrect escape sequences). Viewed 27k times 3 . Common Mistakes When Escaping Data Python Escape non-ASCII characters while encoding them into JSON: To escape non-ASCII characters while encoding them into JSON data, you can use the json. For example the JSON File contain passwords with "&". qtxk bltem anw wcou lmer xjghej kjtmkl gsdbj szozvptul lbkol xyjy wmsz lqdk lqvxkc pqscl