rapidjson的Python接口(JSON解析器和生成器)。
项目描述
关于
pyrapidjson是rapidjson(JSON解析器/生成器)的包装器。
安装
通过pip
$ pip install pyrapidjson
通过easy_install
easy_install -ZU pyrapidjson
需求
Python2.7+
用法
基本用法
>>> import rapidjson >>> rapidjson.loads('[1, 2, {"test": "hoge"}]') >>> [1, 2, {"test": "hoge"}] >>> rapidjson.dumps([1, 2, {"foo": "bar"}]) '[1,2,{"foo":"bar"}]' >>>