Since Crockford defined JSON I think he was pretty sure how to parse it too. I am not sure how someone arrives at a JSON string with literal newlines in strings. A compliant JSON.stringify implementation shouldn't produce it. That leaves some sort of ad-hoc JSON generation, which is not a good idea for so many reasons. When the JSON string fails ...