This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tomchristie
Recipients ezio.melotti, pitrou, rhettinger, serhiy.storchaka, tomchristie, ztane
Date 2014-12-02.14:33:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1417530785.25.0.0326279463911.issue18290@psf.upfronthosting.co.za>
In-reply-to
Content
I believe the status of this should be reassessed and that python should default to escaping '\u2028' and '\u2029'. *Strictly* speaking this isn't a bug and is per the JSON spec.

*However* this *is* a bug in the JSON spec - which *should* be a strict subset of JSON. Given that both escaped and unescaped are valid, ensuring that those two characters *are* always escaped would clearly be more user-friendly behavior on our part, and *would* lead to less bugs in, say web frameworks that use the JSON module and then pass the output to template (eg populating a javscript variable with some JSON output).
History
Date User Action Args
2014-12-02 14:33:05tomchristiesetrecipients: + tomchristie, rhettinger, pitrou, ezio.melotti, serhiy.storchaka, ztane
2014-12-02 14:33:05tomchristiesetmessageid: <1417530785.25.0.0326279463911.issue18290@psf.upfronthosting.co.za>
2014-12-02 14:33:05tomchristielinkissue18290 messages
2014-12-02 14:33:04tomchristiecreate