kw_duplicate()
#
Create a deep copy of a JSON object. Works with json_t *
.
Prototype
PUBLIC json_t *kw_duplicate(
json_t *kw
);
Parameters
Key |
Type |
Description |
---|---|---|
|
The JSON object to duplicate. |
Return Value
Returns a new json_t *
object that is a deep copy of the input, or NULL
on failure.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples