kw_clone_by_path()#
Create a clone of a JSON object by including only values from a specified path. Works with json_t *.
Prototype
PUBLIC json_t *kw_clone_by_path(
json_t *kw,
const char *path
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
The JSON object to clone. |
|
|
|
The path specifying which parts of the object to include in the clone. |
Return Value
Returns a new json_t * object containing only the values from the specified path, or NULL on failure.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples