kw_set_subdict_value()
#
Set a value in a JSON sub-dictionary at a specified path. Works with json_t *
.
Prototype
PUBLIC int kw_set_subdict_value(
json_t *kw,
const char *path,
const char *value
);
Parameters
Key |
Type |
Description |
---|---|---|
|
The JSON object to modify. |
|
|
|
The path where the value will be set. |
|
|
The value to set in the sub-dictionary. |
Return Value
Returns 0
on success, or a negative value on failure.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples