My app has a simple messaging feature. It turns out that if a user puts line breaks in their message, I get the error 'Error parsing JSON: Control character error, possibly incorrectly encoded'
I tried replacing ' n' with ' ' before decoding, but still got the error. In 'Run & Debug', I rewrote the message totally from scratch in case there were invisible control characters (apparently that's a thing?). It still failed as soon as I put in ' n'.
I'm successfully decoding ' n' in other parts of the app. Why does it give me trouble when trying to apply that to an input?