{"newData": [{"env1": [{"sins": [{"host": "test.com","deployTime": "2015-07-23 11:54 AM",…}],"name": “hello”}, {"env1": [{"sins": [{"host": "test.com","deployTime": "2015-12-16 05:23 PM",…}],"name": "hello"
I am trying to pull the 'host' and the 'name' from this nested dictionary.
I only know how to get 'name' and append to a list, but I want to append both name and 'host'.
Currently I am doing
list=[]
for row in my_dict['newData']:list.append(row)
for i in list:print i['name']