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 <>
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).
Date User Action Args
2014-12-02 14:33:05tomchristiesetrecipients: + tomchristie, rhettinger, pitrou, ezio.melotti, serhiy.storchaka, ztane
2014-12-02 14:33:05tomchristiesetmessageid: <>
2014-12-02 14:33:05tomchristielinkissue18290 messages
2014-12-02 14:33:04tomchristiecreate