Convert a JSON string to a dict

Example1

import json

json_string = """
{
    "id": "abc123",
    "name": "Bob"
}
"""
json_object = json.loads(json_string)

print(type(json_object))  # <class 'dict'>
print(json_object["id"])  # abc123

data = json.dumps(json_object)
print(type(data))         # <class 'str'>
print(data)               # {"id": "abc123", "name": "Bob"}

Example2

import json

jsonString = '{"a":54, "b": {"c":87}}'
aDict = json.loads(jsonString)

print(aDict)
print(aDict['a'])
print(aDict['b'])
print(aDict['b']['c'])
{'a': 54, 'b': {'c': 87}}
54
{'c': 87}
87