python JSON模块
JSON模块是python的库,用来import JSON来解析JSON格式的文件中的数据用于python语言分析,即Parse JSON - Convert from JSON to python。
也可以将python中的数据用JSON格式导出来
https://docs.python.org/zh-cn/2.7/library/json.html#module-json
案例:
import json
#some JSON:
x = '{ "name":"John", "age":30, "city":"New York"}'
#parse x:
y = json.loads(x)
#the result is a Python dictionary: