kw_delete()

kw_delete()#

Delete a key from a JSON object. Works with json_t *.

Prototype

PUBLIC int kw_delete(
    json_t      *kw,
    const char  *key
);
        

Parameters

Key

Type

Description

kw

json_t *

The JSON object to modify.

key

const char *

The key to delete from the JSON object.


Return Value

Returns 0 on success, or a negative value if the key does not exist or deletion fails.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples