So, quotes in the JSON needed to be escaped to not conflict with the string delimiters, newlines had to be removed or they'd cause a JavaScript syntax error, and so-on.

So, quotes in the JSON needed to be escaped to not conflict with the string delimiters, newlines had to be removed or they'd cause a JavaScript syntax error, and so-on.

Originally, the two __literal_slash__ lines didn't exist, and it would fall apart if some of the text had a literal "

" sequence written out in text, i.e. " \\ n", as in this example:

Originally, the two __literal_slash__ lines didn't exist, and it would fall apart if some of the text had a literal "

" sequence written out in text, i.e. " \\ n", as in this example: