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

Sridhar Ratnakumar report at bugs.python.org
Fri Jul 24 23:09:02 CEST 2009


Sridhar Ratnakumar <sridharr at activestate.com> added the comment:

The simplest repro:

In [6]: json.dumps({None: 3})
Out[6]: '{"null": 3}'

In [7]: json.loads(json.dumps({None: 3}))
Out[7]: {u'null': 3}

----------

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


More information about the Python-bugs-list mailing list