python json treatment

{"Period":"60","Datapoints":"[{\"timestamp\":1558939800000,\"Value\":502575.2}]","RequestId":"ACAE7BAD-75BA-4075-A396-A6598D59F182","Code":"200"}

res = eval(s['Datapoints'])[0]['Value']
print(round(res/1024/1024,2))

Guess you like

Origin blog.51cto.com/wsxxsl/2401165