|
@@ -58,6 +58,25 @@ the library:
|
|
/* Code specific to version 1.3 and above */
|
|
/* Code specific to version 1.3 and above */
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+Additionally, there are functions to determine the version of Jansson at
|
|
|
|
+runtime:
|
|
|
|
+
|
|
|
|
+.. function:: const char *jansson_version_str()
|
|
|
|
+
|
|
|
|
+ Return the version of the Jansson library, in the same format as
|
|
|
|
+ the ``JANSSON_VERSION`` preprocessor constant.
|
|
|
|
+
|
|
|
|
+ .. versionadded:: 2.13
|
|
|
|
+
|
|
|
|
+.. function:: int jansson_version_cmp(int major, int minor, int micro)
|
|
|
|
+
|
|
|
|
+ Returns an integer less than, equal to, or greater than zero if
|
|
|
|
+ the runtime version of Jansson is found, respectively, to be less
|
|
|
|
+ than, to match, or be greater than the provided *major*, *minor*, and
|
|
|
|
+ *micro*.
|
|
|
|
+
|
|
|
|
+ .. versionadded:: 2.13
|
|
|
|
+
|
|
``JANSSON_THREAD_SAFE_REFCOUNT``
|
|
``JANSSON_THREAD_SAFE_REFCOUNT``
|
|
If this value is defined all read-only operations and reference counting in
|
|
If this value is defined all read-only operations and reference counting in
|
|
Jansson are thread safe. This value is not defined for versions older than
|
|
Jansson are thread safe. This value is not defined for versions older than
|
|
@@ -1066,6 +1085,13 @@ can be ORed together to obtain *flags*.
|
|
|
|
|
|
.. versionadded:: 2.10
|
|
.. versionadded:: 2.10
|
|
|
|
|
|
|
|
+``JSON_FRACTIONAL_DIGITS``
|
|
|
|
+ When combined with `JSON_REAL_PRECISION(n), output all real numbers
|
|
|
|
+ with at most *n* digits after the decimal (rather than *n* total
|
|
|
|
+ digits).
|
|
|
|
+
|
|
|
|
+ .. versionadded:: 2.13
|
|
|
|
+
|
|
These functions output UTF-8:
|
|
These functions output UTF-8:
|
|
|
|
|
|
.. function:: char *json_dumps(const json_t *json, size_t flags)
|
|
.. function:: char *json_dumps(const json_t *json, size_t flags)
|