{
"0": {
"bar": "test0"
},
"1": {
"bar": "test1"
},
"2": {
"bar": "test2"
}
}
import json
with open('test.json') as json_file:
data = json.load(json_file)
for item in data:
print(item['bar'])
import json
with open('test.json') as json_file:
data = json.load(json_file)
for item in data:
for test in item:
print(test)