mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 10:05:56 +01:00
GitBook: [master] 324 pages modified
This commit is contained in:
committed by
gitbook-bot
parent
13e99f7fde
commit
a986dbba9b
18
firmwareapi/micropython/ujson.md
Normal file
18
firmwareapi/micropython/ujson.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# ujson
|
||||
|
||||
This modules allows to convert between Python objects and the JSON data format.
|
||||
|
||||
## Methods
|
||||
|
||||
#### 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.
|
||||
|
||||
Reference in New Issue
Block a user