jsmn(json解析器)的python接口。
pyjsmn的Python项目详细描述
关于
pyjsmn是JSMN(极简json解析器)的包装器。 Pyjsmn不支持编码方法(obj->;str)。
安装
来自PIP:
$ pip install pyjsmn
从简易安装:
easy_install -ZU pyjsmn
要求
Python2.7。
用法
基本用法:
>>> import pyjsmn >>> pyjsmn.loads('[1, 2, {"test": "hoge"}]') >>> [1, 2, {"test": "hoge"}]