We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9bca1f commit e05fca4Copy full SHA for e05fca4
1 file changed
docs/library/ujson.rst
@@ -12,10 +12,23 @@ data format.
12
Functions
13
---------
14
15
+.. function:: dump(obj, stream)
16
+
17
+ Serialise *obj* to a JSON string, writing it to the given *stream*.
18
19
.. function:: dumps(obj)
20
21
Return *obj* represented as a JSON string.
22
23
+.. function:: load(stream)
24
25
+ Parse the given *stream*, interpreting it as a JSON string and
26
+ deserialising the data to a Python object. The resulting object is
27
+ returned.
28
29
+ Parsing continues until end-of-file is encountered.
30
+ A :exc:`ValueError` is raised if the data in *stream* is not correctly formed.
31
32
.. function:: loads(str)
33
34
Parse the JSON *str* and return an object. Raises :exc:`ValueError` if the
0 commit comments