summaryrefslogtreecommitdiff
path: root/index.rst
diff options
context:
space:
mode:
Diffstat (limited to 'index.rst')
-rw-r--r--index.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/index.rst b/index.rst
index f6084bd..7b646ae 100644
--- a/index.rst
+++ b/index.rst
@@ -151,7 +151,10 @@ Basic Usage
versions of simplejson earlier than 2.1.0, an integer is also accepted
and is converted to a string with that many spaces.
- If specified, *separators* should be an ``(item_separator, dict_separator)``
+ .. versionchanged:: 2.1.0
+ Changed *indent* from an integer number of spaces to a string.
+
+ If specified, *separators* should be an ``(item_separator, dict_separator)``
tuple. By default, ``(', ', ': ')`` are used. To get the most compact JSON
representation, you should specify ``(',', ':')`` to eliminate whitespace.
@@ -400,6 +403,9 @@ Encoders and decoders
versions of simplejson earlier than 2.1.0, an integer is also accepted
and is converted to a string with that many spaces.
+ .. versionchanged:: 2.1.0
+ Changed *indent* from an integer number of spaces to a string.
+
If specified, *separators* should be an ``(item_separator, key_separator)``
tuple. By default, ``(', ', ': ')`` are used. To get the most compact JSON
representation, you should specify ``(',', ':')`` to eliminate whitespace.