Articles → Python → Read JSON Data In Python
import json # some JSON: x = '{ "name":"Karan", "age":37, "city":"Gurgaon"}' # parse x: y = json.loads(x) # the result is a Python dictionary: print("name:", y["name"]) print("age:", y["age"]) print("city:", y["city"])
Query/Feedback