[issue6566] json.dumps converts None to "null" (not null)

Jean-Paul Calderone report at bugs.python.org
Fri Jul 24 23:13:36 CEST 2009


Jean-Paul Calderone <exarkun at divmod.com> added the comment:

Notice what it does to other dict keys:

    >>> simplejson.dumps({1: 1})
    '{"1": 1}'

In other words, I don't think this is a bug.  It's how JSON works.  JSON
dict keys are strings *only*.

----------
nosy: +exarkun

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6566>
_______________________________________


More information about the Python-bugs-list mailing list