1 Star 0 Fork 11

chenchi/microPython

forked from QuecPython/microPython 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ujson.rst 961 Bytes
一键复制 编辑 原始数据 按行查看 历史
chenchi 提交于 2024-03-02 15:23 +08:00 . initial commit.

:mod:`ujson` -- JSON encoding and decoding

.. module:: ujson
   :synopsis: JSON encoding and decoding

|see_cpython_module| :mod:`python:json`.

This modules allows to convert between Python objects and the JSON data format.

Functions

.. function:: dump(obj, stream)

   Serialise *obj* to a JSON string, writing it to the given *stream*.

.. function:: dumps(obj)

   Return *obj* represented as a JSON string.

.. function:: load(stream)

   Parse the given *stream*, interpreting it as a JSON string and
   deserialising the data to a Python object.  The resulting object is
   returned.

   Parsing continues until end-of-file is encountered.
   A :exc:`ValueError` is raised if the data in *stream* is not correctly formed.

.. function:: loads(str)

   Parse the JSON *str* and return an object.  Raises :exc:`ValueError` if the
   string is not correctly formed.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/brian_chenchi/microPython.git
git@gitee.com:brian_chenchi/microPython.git
brian_chenchi
microPython
microPython
master

搜索帮助