meaning of the returned list of python json

Posted by fmsf on Stack Overflow See other posts from Stack Overflow or by fmsf
Published on 2010-03-22T12:19:29Z Indexed on 2010/03/22 12:21 UTC
Read the original article Hit count: 276

Filed under:
|

Hey,

I'm new to python so I really don't know the language very well.

the following example was taken from here http://docs.python.org/library/json.html

>>> import json
>>> json.loads('["foo", {"bar":["baz", null, 1.0, 2]}]')
[u'foo', {u'bar': [u'baz', None, 1.0, 2]}]

what does the u mean? and how do i know which elements are available in the dictionary?

© Stack Overflow or respective owner

Related posts about python

Related posts about JSON