kwjr_get()
#
Retrieve a JSON value from a JSON object or array based on a JSON path. Works with json_t *
.
Prototype
PUBLIC json_t *kwjr_get(
json_t *kw,
const char *path
);
Parameters
Key |
Type |
Description |
---|---|---|
|
The JSON object or array to query. |
|
|
|
The JSON path used to retrieve the value. |
Return Value
Returns a pointer to the value at the specified path, or NULL
if the path does not exist.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples