Parsing JSON String/object In Python
I've recently started working with JSON in python. Now I'm passing a JSON string to Python(Django) through a post request. Now I want to parse/iterate of that data. But I can't fin
Solution 1:
To iterate key and value, you can write
for key, value in jdata.iteritems():
print key, value
You can read the document here: dict.iteritems
Solution 2:
Just for others to help. In Python3 dict.iteritems()
has been renamed to dict.iter()
Post a Comment for "Parsing JSON String/object In Python"