diff options
author | allen <leloucharcher@163.com> | 2019-10-08 20:32:27 +0800 |
---|---|---|
committer | allen <leloucharcher@163.com> | 2019-10-08 20:32:27 +0800 |
commit | 8682f2aab3891a53c30c5b47490a2814cb41f340 (patch) | |
tree | c712a5712394457e7be6a607219efa6ef95232af /doc | |
parent | 672b6df4743dbf76e059c640ad3fe45f7c795594 (diff) | |
download | jansson-8682f2aab3891a53c30c5b47490a2814cb41f340.zip jansson-8682f2aab3891a53c30c5b47490a2814cb41f340.tar.gz jansson-8682f2aab3891a53c30c5b47490a2814cb41f340.tar.bz2 |
fix issue #281
Diffstat (limited to 'doc')
-rw-r--r-- | doc/apiref.rst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/apiref.rst b/doc/apiref.rst index 3c4fa47..5d8d41b 100644 --- a/doc/apiref.rst +++ b/doc/apiref.rst @@ -708,6 +708,24 @@ allowed in object keys. .. versionadded:: 2.3 +.. function:: int json_object_update_new(json_t *object, json_t *other) + + Like :func:`json_object_update()`, but steals the reference to + *other*. This is useful when *other* is newly created and not used + after the call. + +.. function:: int json_object_update_existing_new(json_t *object, json_t *other) + + Like :func:`json_object_update_new()`, but only the values of existing + keys are updated. No new keys are created. Returns 0 on success or + -1 on error. + +.. function:: int json_object_update_missing_new(json_t *object, json_t *other) + + Like :func:`json_object_update_new()`, but only new keys are created. + The value of any existing key is not changed. Returns 0 on success + or -1 on error. + .. function:: json_object_foreach(object, key, value) Iterate over every key-value pair of ``object``, running the block |