Read json file and get output values
问题 I want to fetch the output of below json file using python Json file { "Name": [ { "name": "John", "Avg": "55.7" }, { "name": "Rose", "Avg": "71.23" }, { "name": "Lola", "Avg": "78.93" }, { "name": "Harry", "Avg": "95.5" } ] } I want to get the average marks of the person, when I look for harry i.e. I need output in below or similar format Harry = 95.5 Here's my code import json json_file = open('test.json') //the above contents are stored in the json data = json.load(json_file) do = data[