aboutsummaryrefslogtreecommitdiff
path: root/doc/apiref.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/apiref.rst')
-rw-r--r--doc/apiref.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/apiref.rst b/doc/apiref.rst
index 7afeb21..a8cf8d6 100644
--- a/doc/apiref.rst
+++ b/doc/apiref.rst
@@ -1564,7 +1564,10 @@ type whose address should be passed.
Store a JSON value with no conversion to a :type:`json_t` pointer.
``O`` (any value) [json_t \*]
- Like ``O``, but the JSON value's reference count is incremented.
+ Like ``o``, but the JSON value's reference count is incremented.
+ Storage pointers should be initialized NULL before using unpack.
+ The caller is responsible for releasing all references incremented
+ by unpack, even when an error occurs.
``[fmt]`` (array)
Convert each item in the JSON array according to the inner format