From: Petri Lehtinen Date: Mon, 12 Sep 2011 18:22:19 +0000 (+0300) Subject: doc: Clarify the result of 's' format of json_unpack() X-Git-Tag: 1.0_branch~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4cc77ce52894d43a94c30d4ffbe7640a9e62a32;p=profile%2Fivi%2Fjansson.git doc: Clarify the result of 's' format of json_unpack() Fixes GH-31. --- diff --git a/doc/apiref.rst b/doc/apiref.rst index 4ea336f..b49861d 100644 --- a/doc/apiref.rst +++ b/doc/apiref.rst @@ -997,7 +997,9 @@ type whose address should be passed. ``s`` (string) [const char \*] Convert a JSON string to a pointer to a NULL terminated UTF-8 - string. + string. The resulting string is extracted by using + :func:`json_string_value()` internally, so it exists as long as + there are still references to the corresponding JSON string. ``n`` (null) Expect a JSON null value. Nothing is extracted.