import json data = ''' [ { "id" : "001", "x" : "2", "name" : "Quincy" } , { "id" : "009", "x" : "7", "name" : "Mrugesh" } ] ''' info = json.loads(data) print(info[1]['name'])
The code above loads the JSON data from the data string and then prints the value of the "name" field in the second object