json_is_identical()
#
The function json_is_identical()
compares two JSON objects and returns TRUE
if they are identical, otherwise FALSE
.
Prototype
PUBLIC BOOL json_is_identical(
json_t *kw1, /* NOT owned */
json_t *kw2 /* NOT owned */
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The first JSON object to compare. It is not owned by the function. |
|
|
The second JSON object to compare. It is not owned by the function. |
Return Value
Returns TRUE
if kw1
and kw2
are identical, otherwise returns FALSE
.
Notes
The function converts both JSON objects to their string representations and compares them. It ensures deep comparison of JSON structures.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples