代码示例:(标识:python_json)
python_json.py
import json

# some JSON:
x =  '{ "name":"Bill", "age":63, "city":"Seatle"}'

# parse x:
y = json.loads(x)

# the result is a Python dictionary:
print(y["age"])
运行结果: