--- a/docs/Writerside/topics/json.h.md Sat Dec 13 12:54:56 2025 +0100 +++ b/docs/Writerside/topics/json.h.md Sat Dec 13 13:24:02 2025 +0100 @@ -166,6 +166,19 @@ > If you don't have full control over the JSON data, you should always check the datatype of a value first before accessing it. >{style="note"} +## Compare Values + +```C +#include <cx/json.h> + +int cxJsonCompare(const CxJsonValue *value, + const CxJsonValue *other); +``` + +The function `cxJsonCompare()` performs a deep comparison of two JSON values. +It returns zero if both values are equal except for the order of object members. +When the values are not equal, the return-value is an unspecified non-zero value. + ## Deallocate Memory ```C