kw_update_except()
#
Update a JSON object with the contents of another JSON object, excluding specified keys. Works with json_t *
.
Prototype
PUBLIC int kw_update_except(
json_t *destination,
json_t *source,
const char **keys_to_exclude
);
Parameters
Key |
Type |
Description |
---|---|---|
|
The JSON object to update. |
|
|
The JSON object whose contents will be merged into the destination. |
|
|
|
A null-terminated array of keys to exclude from the update. |
Return Value
Returns 0
on success, or a negative value on error.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples