@@ -155,9 +155,13 @@ Basic Usage
155155 .. versionchanged :: 3.2
156156 Allow strings for *indent * in addition to integers.
157157
158- If *separators * is an ``(item_separator, dict_separator) `` tuple, then it
159- will be used instead of the default ``(', ', ': ') `` separators. ``(',',
160- ':') `` is the most compact JSON representation.
158+ If specified, *separators * should be an ``(item_separator, key_separator) ``
159+ tuple. The default is ``(', ', ': ') `` if *indent * is ``None `` and
160+ ``(',', ': ') `` otherwise. To get the most compact JSON representation,
161+ you should specify ``(',', ':') `` to eliminate whitespace.
162+
163+ .. versionchanged :: 3.4
164+ Use ``(',', ': ') `` as default if *indent * is not ``None ``.
161165
162166 *default(obj) * is a function that should return a serializable version of
163167 *obj * or raise :exc: `TypeError `. The default simply raises :exc: `TypeError `.
@@ -394,8 +398,12 @@ Encoders and Decoders
394398 Allow strings for *indent * in addition to integers.
395399
396400 If specified, *separators * should be an ``(item_separator, key_separator) ``
397- tuple. The default is ``(', ', ': ') ``. To get the most compact JSON
398- representation, you should specify ``(',', ':') `` to eliminate whitespace.
401+ tuple. The default is ``(', ', ': ') `` if *indent * is ``None `` and
402+ ``(',', ': ') `` otherwise. To get the most compact JSON representation,
403+ you should specify ``(',', ':') `` to eliminate whitespace.
404+
405+ .. versionchanged :: 3.4
406+ Use ``(',', ': ') `` as default if *indent * is not ``None ``.
399407
400408 If specified, *default * is a function that gets called for objects that can't
401409 otherwise be serialized. It should return a JSON encodable version of the
0 commit comments