Creating Python dict from JSON

suggest change
import json
s = '{"wonderland": [1, 2, 3], "foo": "bar", "alice": 1}'
json.loads(s)

The above snippet will return the following:

{u'alice': 1, u'foo': u'bar', u'wonderland': [1, 2, 3]}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents