I am sending a JSON string from Objective-C to Python. Then I want to break contents of the string into a Python list. I am trying to iterate over a string (any string for now):
json.loads(s) will return you list. To iterate over it you don't need iteritems.
json.loads(s)
list
iteritems
>>> jdata = json.loads(s) >>> for doc in jdata: ... for key, value in doc.iteritems(): ... print key, value