This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients barry
Date 2010-10-27.20:41:15
SpamBayes Score 1.7628578e-06
Marked as misclassified No
Message-id <1288212077.55.0.987280574244.issue10216@psf.upfronthosting.co.za>
In-reply-to
Content
json is defined as mapping the JSON string type into unicodes.  This works as advertised in Python 2.6 and 3, but in Python 2.7 it returns a str.

% python2.6 -c "import json; print json.loads('{\"foo\":\"bar\"}')"
{u'foo': u'bar'}
% python2.7 -c "import json; print json.loads('{\"foo\":\"bar\"}')"
{'foo': 'bar'}

Platform tested so far: Ubuntu 10.10 amd64.
History
Date User Action Args
2010-10-27 20:41:17barrysetrecipients: + barry
2010-10-27 20:41:17barrysetmessageid: <1288212077.55.0.987280574244.issue10216@psf.upfronthosting.co.za>
2010-10-27 20:41:16barrylinkissue10216 messages
2010-10-27 20:41:16barrycreate