kw_set_subdict_value()

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

kw

json_t *

The JSON object to modify.

path

const char *

The path where the value will be set.

value

const char *

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