Averroes / simplejson

MIT License
0 stars 0 forks source link

Decoder decodes JSON-strings to 'str' (Issue 28 again) / documentation error #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
r203

Original comment by bob.ippo...@gmail.com on 27 Dec 2009 at 10:26