kw_get_dict_value()
#
Get the value of a key from a sub-dictionary in a JSON object. Works with json_t *
.
Prototype
PUBLIC json_t *kw_get_dict_value(
json_t *kw,
const char *key,
const char *subkey
);
Parameters
Key |
Type |
Description |
---|---|---|
|
The JSON object to query. |
|
|
|
The key whose value is a sub-dictionary. |
|
|
The key to retrieve from the sub-dictionary. |
Return Value
Returns the value of subkey
in the sub-dictionary, or NULL
if the key or subkey does not exist.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples