kw_clone_by_not_keys()#
Create a clone of a JSON object by excluding specified keys. Works with json_t *.
Prototype
PUBLIC json_t *kw_clone_by_not_keys(
json_t *kw,
const char **keys_to_exclude
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
The JSON object to clone. |
|
|
|
A null-terminated array of keys to exclude from the clone. |
Return Value
Returns a new json_t * object excluding the specified keys, or NULL on failure.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples