kwid_compare_records()
#
Compare two JSON objects (records) based on their kwid
fields. Works with json_t *
.
Prototype
PUBLIC int kwid_compare_records(
json_t *record1,
json_t *record2
);
Parameters
Key |
Type |
Description |
---|---|---|
|
The first JSON object to compare. |
|
|
The second JSON object to compare. |
Return Value
Returns 0
if the kwid
fields are equal, a positive value if record1
is greater, or a negative value if record2
is greater.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples