javascript - Json parsing gives error when using special characters in the data

one text

Solution:

JSON syntax does not allow "raw" newlines in the middle of string values. You can use \n to include a newline (well, technically a linefeed) character. Generally, the correct thing to do is to use a proven JSON-encoding library to transform a server-side data structure into compliant JSON notation.

Source