doc: json_dump_callback was added in v2.2

This commit is contained in:
Petri Lehtinen 2011-09-02 21:29:01 +03:00
parent 910fb92267
commit 68809cd913

View File

@ -779,12 +779,16 @@ is in UTF-8.
On error, the function should return -1 to stop the encoding On error, the function should return -1 to stop the encoding
process. On success, it should return 0. process. On success, it should return 0.
.. versionadded:: 2.2
.. function:: int json_dump_callback(const json_t *json, json_dump_callback_t callback, void *data, size_t flags) .. function:: int json_dump_callback(const json_t *json, json_dump_callback_t callback, void *data, size_t flags)
Call *callback* repeatedly, passing a chunk of the JSON Call *callback* repeatedly, passing a chunk of the JSON
representation of *root* each time. *flags* is described above. representation of *root* each time. *flags* is described above.
Returns 0 on success and -1 on error. Returns 0 on success and -1 on error.
.. versionadded:: 2.2
.. _apiref-decoding: .. _apiref-decoding: