[Python-Dev] Bug in json (the format and the module) (original) (raw)
Jeremy Dunck jdunck at gmail.com
Tue May 17 19:40:04 CEST 2011
- Previous message: [Python-Dev] "packaging" merge imminent
- Next message: [Python-Dev] Bug in json (the format and the module)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This blog post describes a bug in a common usage pattern of JSON:
http://timelessrepo.com/json-isnt-a-javascript-subset
That is, there are some characters which are legal in JSON serializations, but not in JavaScript strings.
This works OK for JSON parsers, but a common use case of JSON is JSONP, where the result of a request is presumed to be executable javascript: