aboutsummaryrefslogtreecommitdiff
path: root/doc/apiref.rst
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2014-07-07 11:29:10 +0300
committerPetri Lehtinen <petri@digip.org>2014-07-07 11:34:50 +0300
commit88943b64e35c01e170e2ccb242b07e97a91b5816 (patch)
treef4d80124c5c669871b7ca685c1ece8fadcf0ff3c /doc/apiref.rst
parent348401e7b8a769a772b3eb26d9edca3564261f21 (diff)
downloadjansson-88943b64e35c01e170e2ccb242b07e97a91b5816.zip
jansson-88943b64e35c01e170e2ccb242b07e97a91b5816.tar.gz
jansson-88943b64e35c01e170e2ccb242b07e97a91b5816.tar.bz2
Define JSON_MAX_INDENT
Fixes #191.
Diffstat (limited to 'doc/apiref.rst')
-rw-r--r--doc/apiref.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/apiref.rst b/doc/apiref.rst
index 9c29c79..f8c27f7 100644
--- a/doc/apiref.rst
+++ b/doc/apiref.rst
@@ -866,6 +866,12 @@ can be ORed together to obtain *flags*.
output. If ``JSON_INDENT`` is not used or *n* is 0, no newlines are
inserted between array and object items.
+ The ``JSON_MAX_INDENT`` constant defines the maximum indentation
+ that can be used, and its value is 31.
+
+ .. versionchanged:: 2.7
+ Added ``JSON_MAX_INDENT``.
+
``JSON_COMPACT``
This flag enables a compact representation, i.e. sets the separator
between array and object items to ``","`` and between object keys