源代码
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"])
运行结果