tinyows icon indicating copy to clipboard operation
tinyows copied to clipboard

Backlashes are not escaped in json output

Open vmora opened this issue 10 years ago • 0 comments

I came across this because of an attribute that is a windows path:

 "documents": "..\Photos\17\f139p223.jpg"

When parsing with JSON.parse(..) the "\P" causes:

SyntaxError: JSON.parse: bad escaped character at line 2 column 458 of the JSON data

vmora avatar Sep 30 '15 14:09 vmora