Hello, I have been experimenting with using the json1 extension to generate json sql-side rather than code-side, but I am hitting an issue with the CR & LF characters which are not escaped, which results in json that fails JSON.parse or use as JSONP in browsers. Ideally CR / LF should be encoded as \r and \n respectively.
Is it by design or an oversight? Is there a way around using the replace() function to fix it? (though I guess other control characters will have the issue, so multiple replace() would be needed) Eric