As far as I can tell, if the argument to json.loads is unicode, then all strings embedded in the resulting return value will always be unicode. For example:
>>> simplejson.loads('[{"foo": "bar"}, "baz"]') [{'foo': 'bar'}, 'baz'] >>> simplejson.loads(u'[{"foo": "bar"}, "baz"]') [{u'foo': u'bar'}, u'baz']
« Back to merge proposal
As far as I can tell, if the argument to json.loads is unicode, then all strings embedded in the resulting return value will always be unicode. For example:
>>> simplejson. loads(' [{"foo" : "bar"}, "baz"]') loads(u' [{"foo" : "bar"}, "baz"]')
[{'foo': 'bar'}, 'baz']
>>> simplejson.
[{u'foo': u'bar'}, u'baz']