src/cx/json.h

changeset 1582
32b82c424252
parent 1573
cd2e974410ad
child 1591
ef2f47fc5f0c
--- a/src/cx/json.h	Sat Dec 13 12:50:37 2025 +0100
+++ b/src/cx/json.h	Sat Dec 13 12:54:56 2025 +0100
@@ -1366,6 +1366,18 @@
  */
 #define cxJsonObjRemove(value, name) cx_json_obj_remove(value, cx_strcast(name))
 
+/**
+ * Performs a deep comparison of two JSON values.
+ *
+ * The order of object members is ignored during comparison.
+ *
+ * @param json the JSON value
+ * @param other the other JSON value that the JSON value is compared to
+ * @retval zero the values are equal (except for ordering of object members)
+ * @retval non-zero the values differ
+ */
+CX_EXPORT int cxJsonCompare(const CxJsonValue *json, const CxJsonValue *other);
+
 #ifdef __cplusplus
 }
 #endif

mercurial