Author srid
Recipients srid
Date 2009-07-24.21:07:57
SpamBayes Score 0.00161708
Marked as misclassified No
Message-id <1248469678.72.0.793111928959.issue6566@psf.upfronthosting.co.za>
In-reply-to
Content
In [2]: json.dumps({'a': 1, 'b': {'c': 3, None: 5}})
Out[2]: '{"a": 1, "b": {"c": 3, "null": 5}}'

In [3]: j = json.dumps({'a': 1, 'b': {'c': 3, None: 5}})

In [4]: json.loads(j)
Out[4]: {u'a': 1, u'b': {u'c': 3, u'null': 5}}

I was surprised to note that None was converted to "null" instead of 
null. This happens only in dicts and not, for example, lists:

In [5]: json.dumps([None, 1, "a"])
Out[5]: '[null, 1, "a"]'
History
Date User Action Args
2009-07-24 21:07:59sridsetrecipients: + srid
2009-07-24 21:07:58sridsetmessageid: <1248469678.72.0.793111928959.issue6566@psf.upfronthosting.co.za>
2009-07-24 21:07:57sridlinkissue6566 messages
2009-07-24 21:07:57sridcreate