fastjson icon indicating copy to clipboard operation
fastjson copied to clipboard

SyntaxError: JSON.parse: bad control character in string literal at line 1 column 265 of the JSON data

Open WolfgangFahl opened this issue 11 years ago • 2 comments

The reason seems to be a \n newline character in a string. I would have expected that this get's automatically escaped by fast json. Is fast json so fast that it doesn't do the necessary jobs?

WolfgangFahl avatar Jun 24 '15 15:06 WolfgangFahl

i have a try as u say but no problem have been found can u upload your code ,then i can try my best to fix it

LQZYC avatar Jun 30 '15 03:06 LQZYC

'\n' at the end string caused the error. bug fixed, i will include in 1.2.9 & 1.1.49.android

wenshao avatar Apr 13 '16 14:04 wenshao