projects
/
jansson.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement JSON_SORT_KEYS encoding flag
[jansson.git]
/
doc
/
apiref.rst
diff --git
a/doc/apiref.rst
b/doc/apiref.rst
index
dcd401c
..
fd2a7c9
100644
(file)
--- a/
doc/apiref.rst
+++ b/
doc/apiref.rst
@@
-526,6
+526,13
@@
can be ORed together to obtain *flags*.
.. versionadded:: 1.2
.. versionadded:: 1.2
+``JSON_SORT_KEYS``
+ If this flag is used, all the objects in output are sorted by key.
+ This is useful e.g. if two JSON texts are diffed or visually
+ compared.
+
+ .. versionadded:: 1.2
+
The following functions perform the actual JSON encoding. The result
is in UTF-8.
The following functions perform the actual JSON encoding. The result
is in UTF-8.