diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/library/ujson.rst | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/library/ujson.rst b/docs/library/ujson.rst index 5668eb21a..65ed1867e 100644 --- a/docs/library/ujson.rst +++ b/docs/library/ujson.rst @@ -12,14 +12,20 @@ data format. Functions --------- -.. function:: dump(obj, stream) +.. function:: dump(obj, stream, separators=None) Serialise *obj* to a JSON string, writing it to the given *stream*. -.. function:: dumps(obj) + If specified, separators should be an ``(item_separator, key_separator)`` + tuple. The default is ``(', ', ': ')``. To get the most compact JSON + representation, you should specify ``(',', ':')`` to eliminate whitespace. + +.. function:: dumps(obj, separators=None) Return *obj* represented as a JSON string. + The arguments have the same meaning as in `dump`. + .. function:: load(stream) Parse the given *stream*, interpreting it as a JSON string and |
