What is the correct way to loop through the following json object?
test = [{
'start': 'ieo5',
'end': 'tiu9',
'chain': 10489
}, {
'start': 'qvc5',
'end': 'tiu9',
'chain': 45214
}, {
'start': 'ieo5',
'end': 'tiu9',
'chain': 69296
}]
I essentially want to loop through and print out whatever the value of start
is.
I've tried a bunch of options like the ones listed here but can't seem to get it to work.
This doesn't work:
for x in test
print x['start']