[issue13212] json library is decoding/encoding when it should not
Ezio Melotti
report at bugs.python.org
Wed Oct 19 09:05:17 CEST 2011
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
I wonder if there are concrete use cases for loading/dumping basic types.
I see two options here:
1) we decide that load/dump should accept and produce only complete json object and go through a deprecation process, raising warnings first and errors then;
2) we decide that the correct behavior (loading/dumping basic types) is fine and that should be up to the user to check if the document has an array/object at the top level and then just document it (if it's not documented already).
----------
nosy: +ezio.melotti
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13212>
_______________________________________
More information about the Python-bugs-list
mailing list