import json
json = '{"code": 0}'
# Deserialize ``s`` (a ``str``, ``bytes`` or ``bytearray`` instance containing a JSON document) to a Python object.
obj = json.loads(json)
# <class 'dict'>
print(type(obj))
print(obj['code'])
import json
json = '{"code": 0}'
# Deserialize ``s`` (a ``str``, ``bytes`` or ``bytearray`` instance containing a JSON document) to a Python object.
obj = json.loads(json)
# <class 'dict'>
print(type(obj))
print(obj['code'])