aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2018-02-08 20:52:10 +0200
committerPetri Lehtinen <petri@digip.org>2018-02-09 07:37:33 +0200
commitefe6c7b3f2b3d75f1543c3ff4e4c3ecfe914b08d (patch)
tree2eb808e44134e355355f4ce065140c47b5bb9e8e /doc
parent3e81f78366b57a0b5c34d5bfab9cffe5c9605027 (diff)
downloadjansson-efe6c7b3f2b3d75f1543c3ff4e4c3ecfe914b08d.zip
jansson-efe6c7b3f2b3d75f1543c3ff4e4c3ecfe914b08d.tar.gz
jansson-efe6c7b3f2b3d75f1543c3ff4e4c3ecfe914b08d.tar.bz2
Add json_sprintf and json_vsprintfjson_sprintf
Fixes #392
Diffstat (limited to 'doc')
-rw-r--r--doc/apiref.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/apiref.rst b/doc/apiref.rst
index 3ad406d..b429d0b 100644
--- a/doc/apiref.rst
+++ b/doc/apiref.rst
@@ -399,6 +399,16 @@ length-aware functions if you wish to embed null bytes in strings.
.. versionadded:: 2.7
+.. function:: json_t *json_sprintf(const char *format, ...)
+ json_t *json_vsprintf(const char *format, va_list ap)
+
+ .. refcounting:: new
+
+ Construct a JSON string from a format string and varargs, just like
+ :func:`printf()`.
+
+ .. versionadded:: 2.11
+
Number
======