I know there are a lot of questions like these but I am not able to find an answer to my question. Or probably, I am missing something here. The format of my JSON is:
{
    "fields": [
        {
            "type": "long",
            "name": "UniqId",
            "data": "True"
        },
        {
            "type": "string",
            "name": "Name",
            "data": "True"
        },
        {
            "type": "string",
            "name": "Address",
            "data": "False"
        }
    ],
    "type": "struct"
}
I just want name and type to be extracted and appended to a list. First element to be name and second to be type. The above format is saved in a variable json_dump. And when I do:
for k in json_dump1.iteritems():
    print k
It gives me an error
"AttributeError: 'str' object has no attribute 'iteritems".
I would really appreciate the help. Thanks.
 
     
     
    