kw_find_path()

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

kw

json_t *

The JSON object to search.

path

const char *

The path to search for in the JSON object.

create

BOOL

If TRUE, creates the path if it does not exist.


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