abc = {
"orders": [
{
"orderID": 5,
"cost": 10,
"sell": 15
},
{
"orderID": 6,
"cost": 8,
"sell": 12
},
{
"orderID": 7,
"cost": 15,
"sell": 26
}
]
}
for key, value in abc.items():
print (value["orderID"])
I am trying to extract the orderID values, but cant seem to make this work. It should respond with 5,6,7