How to read key value in JSON output without using index
Here is a sample JSON output myJSON = { { "results": [ { "data1": 123.45, "data2": 67.89 } ] } } I'm trying to directly read data1: mydata1 = myJSON['data1'] I get an error KeyError: 'data1'. I can only find…