One - One Code All

Blog Content

python3解析JSON之demjson

Python   2014-06-19 11:20:28


json.dumps     将 Python 对象编码成 JSON 字符串
json.loads     将已编码的 JSON 字符串解码为 Python 对象

encode     将 Python 对象编码成 JSON 字符串
decode     将已编码的 JSON 字符串解码为 Python 对象

res = json.loads(data)
res = demjson.decode(data)


上一篇:pandas中dataframe的合并append, merge, concat
下一篇:python3用chardet查看文本编码

The minute you think of giving up, think of the reason why you held on so long.