Message231999
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:05 | tomchristie | set | recipients:
+ tomchristie, rhettinger, pitrou, ezio.melotti, serhiy.storchaka, ztane |
2014-12-02 14:33:05 | tomchristie | set | messageid: <1417530785.25.0.0326279463911.issue18290@psf.upfronthosting.co.za> |
2014-12-02 14:33:05 | tomchristie | link | issue18290 messages |
2014-12-02 14:33:04 | tomchristie | create | |
|