Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 281 Bytes

convert-json-string-to-dict-using-python.md

File metadata and controls

13 lines (8 loc) · 281 Bytes

如何把JSON字符串转为字典

stackoverflow连接

可以使用json模块的loads方法:

import json

d = json.loads(j)
print d['glossary']['title']