Files
pycom-documentation/chapter/firmwareapi/micropython/ujson.md
Daniel Spindelbauer 3766188390 Initial commit
2018-08-01 15:00:52 +02:00

565 B
Raw Blame History

ujson JSON Encoding and Decoding

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

Functions

#####ujson.dumps(obj)

Return obj represented as a JSON string.

#####ujson.loads(str)

Parse the JSON str and return an object. Raises ValueError if the string is not correctly formed.

#####ujson.load(fp)

Parse contents of fp (a .read()-supporting file-like object containing a JSON document). Raises ValueError if the content is not correctly formed.