On 2/4/16, Richard Hipp <drh at sqlite.org> wrote:
> On 2/4/16, Eric Grange <zarglu at gmail.com> wrote:
>> 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?
>
> Oversight.  https://www.sqlite.org/src/tktview/ad2559db380a
>

Now fixed on trunk.  Snapshot available at https://www.sqlite.org/
and the change is mentioned on the draft change log for the next
release at https://www.sqlite.org/draft/releaselog/3_11_0.html

-- 
D. Richard Hipp
drh at sqlite.org

Reply via email to