[issue34972] json dump silently converts int keys to string

Steve Dower report at bugs.python.org
Sat Oct 13 23:12:57 EDT 2018


Steve Dower <steve.dower at python.org> added the comment:

Agreed with Eric. json.dump needs to produce valid JSON, which requires keys to be strings.

Try using pickle if you need to preserve full Python semantics.

----------
nosy: +steve.dower
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34972>
_______________________________________


More information about the Python-bugs-list mailing list