As mentioned in Issue 28, newer simplejson-decoders (e.g. 2.0.9) now
normally decode JSON-strings to 'str' instead of 'unicode', and only use
'unicode', when non-ASCII-characters are involved. Older versions (e.g.
1.9.2) always returned 'unicode'.
But the simplejson-documentation (e.g. in the docstrings) still claims that
JSON-strings are translated to 'unicode'.
So:
- The documentation should be fixed.
- It would be useful to add an additional parameter "all_unicode" to the
decoders, e.g. like in cjson.decode.
Original issue reported on code.google.com by r.koeb...@yahoo.de on 28 Nov 2009 at 7:23
Original issue reported on code.google.com by
r.koeb...@yahoo.de
on 28 Nov 2009 at 7:23