i am trying to extract specific data from JSON in python but can't do it without specifying the name aby,adz,agn as the data array is very big and i am posting only part of it.
For example, I would like to get "nethash" of the element whose "order" is 160. What is the best strategy here?
This is my JSON:
{
"data": {
"aby": {
"info": {
"algo": "scrypt",
"bestPool": 11,
"bestexchange": 4,
"blocks": 1036520,
"blocktime": 0,
"coin": "aby",
"coinsPerDay": "0.82148358090787920727",
"diff": 4383.33555,
"diffAlgo": "0.00753414531332241653",
"hashAlgo": "0",
"nethash": 66289.728291,
"pos": "?",
"priceBTC": "0.00000098",
"priceUSD": "0.00917138879999999934",
"reward": 200,
"timestamp": "2018-05-10 08:51:02.782957",
"type": "diff",
"usdPerDay": "0.00753414531332241653",
"value": "0.00753414531332241653",
"workers": 757
},
"order": 109
},
"adz": {
"info": {
"algo": "x11",
"bestPool": 10,
"bestexchange": "None",
"blocks": 422294,
"blocktime": 0,
"coin": "adz",
"coinsPerDay": "0.15507838730965944896",
"diff": 103774.174,
"diffAlgo": "0.00310020305638486395",
"hashAlgo": "0",
"nethash": 612234.455356,
"pos": "?",
"priceBTC": "0.00000214",
"priceUSD": "0.01999120000000000064",
"reward": 40,
"timestamp": "2018-05-10 08:51:02.782957",
"type": "diff",
"usdPerDay": "0.00310020305638486395",
"value": "0.00310020305638486395",
"workers": 265
},
"order": 160
},
"agn": {
"info": {
"algo": "neoscrypt",
"bestPool": 10,
"bestexchange": 5,
"blocks": 58301,
"blocktime": 0,
"coin": "agn",
"coinsPerDay": "51.22860596982359027152",
"diff": 4.47654431,
"diffAlgo": "1.47183776684280331892",
"hashAlgo": "0",
"nethash": 86.217988,
"pos": "?",
"priceBTC": "0.00000307",
"priceUSD": "0.02873077919999999716",
"reward": 6,
"timestamp": "2018-05-10 08:51:02.782957",
"type": "diff",
"usdPerDay": "1.47183776684280331892",
"value": "1.47183776684280331892",
"workers": 417
},
"order": 61
}
},
"message": "",
"status": "ok",
"timestamp": "Thu, 10 May 2018 08:51:07 GMT"
}