In this example we will show how to convert from JSON to Python.
Source Code
import json
# JSON data
my_json = '{ "name":"Jim", "age":14, "id":"15"}'
# parse JSON data
json_to_python = json.loads(my_json)
# the result is a Python dictionary:
print(json_to_python)
print(json_to_python['name'])
Output:
{'name': 'Jim', 'age': 14, 'id': '15'}
Jim