# reading the JSON from a JSON object import json json_object_string = """{ "id": "123", "name": "John Doe", "occupation": "Farmer" } """ data_dict = json.loads(json_object_string) print(data_dict)