kw_clone_by_keys()
#
Create a clone of a JSON object by including only specified keys. Works with json_t *
.
Prototype
PUBLIC json_t *kw_clone_by_keys(
json_t *kw,
const char **keys
);
Parameters
Key |
Type |
Description |
---|---|---|
|
The JSON object to clone. |
|
|
|
A null-terminated array of keys to include in the clone. |
Return Value
Returns a new json_t *
object containing only 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