Run
import json # json string jsonStr = '{"name":"Tesla", "age":2, "city":"New York"}' # parse json file pythonObj = json.loads(jsonStr) #print type of object print(type(pythonObj)) #access elements in the object name = pythonObj['name'] print(name)
Output