simplejson Python JSON 编码、解码器

simplejson Python的JSON 编码、解码器

simplejson,Python的第三方库。一个简单、快速、完整、正确且可扩展的Python JSON编码器和解码器。纯Python代码,没有依赖项。

simplejson应用实例

>>> import simplejson as json
>>> json.dumps(['笨鸟工具', {'x1y1z1.com': ('python', None)}])
'["笨鸟工具", {"x1y1z1.com": ["python", null]}]'
>>> obj = ['笨鸟工具', {'x1y1z1.com': ('python', None)}]
>>>returnObj = json.loads('["笨鸟工具", {"x1y1z1.com": ["python", null]}]') 
>>> returnObj == obj
True

Github 数据

It is available under the terms of the MIT license, or the Academic Free License version 2.1.

Github 1.6k stars

simplejson安装命令

pip install simplejson

免责声明:内容编辑自网络,仅供参考,不保证正确性,不作任何决策依据!!以上数据皆截止于博文的写稿日期。


行业导航 / Python指南 :
























Copyright © 2022-2024 笨鸟工具 x1y1z1.com All Rights Reserved.