data = {
"matches":[
{"match1": {
{"Oddid":1, "Odd":1.7},
{"Oddid":2, "Odd":2.4},
{"Oddid":3,"Odd":5.1}
}
},
{"match2": {
{"Oddid":1, "Odd":2.3},
{"Oddid":2, "Odd":1.9},
{"Oddid":3,"Odd":1.2}
}
},
{"match3": {
{"Oddid":1, "Odd":2.7},
{"Oddid":2, "Odd":4.6},
{"Oddid":4,"Odd":9.9}
}
}
]
}
How can I check if every match has "OddId":4. If it has, i want to print "Odd" value, if it doesen't, i want to print "1.00" Thanks!