I have errors coming up with many things.
The biggest errors I have are with backslashes, greater than and less than operators, and quotes. I've done these operations on my text:
text.replaceAll("\"", "\\\"")
text.replaceAll("[^\\x00-\\x7F]", "")
None of these help. Is there anyone one method I can call to format a text into a JSON friendly text?