kw_pop()#
Removes all keys in kw2 from the dictionary kw1. The kw2 parameter can be a string, dictionary, or list.
Prototype
int kw_pop(
json_t *kw1, // NOT owned
json_t *kw2 // NOT owned
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
The dictionary from which keys will be removed. This parameter is not owned by the function. |
|
|
The keys to be removed from |
Return Value
Returns 0 after removing the specified keys from kw1.
Notes
If kw2 is a dictionary, all its keys are removed from kw1. If kw2 is a list, all its elements are removed from kw1. If kw2 is a string, the corresponding key is removed from kw1.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples