kw_find_path()#
Find a value in a JSON object using a specified path. Works with json_t *.
Prototype
PUBLIC json_t *kw_find_path(
json_t *kw,
const char *path,
BOOL create
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
The JSON object to search. |
|
|
|
The path to search for in the JSON object. |
|
|
If |
Return Value
Returns a pointer to the value at the specified path, or NULL if not found or creation failed.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples