JSONValue.opEquals

bool opEquals(const JSONValue rhs) const @nogc nothrow pure @safe

Compare two JSONValues for equality

JSON arrays and objects are compared deeply. The order of object keys does not matter.

Floating point numbers are compared for exact equality, not approximal equality.

Different number types (unsigned, signed, and floating) will be compared by converting them to a common type, in the same way that comparison of built-in D int, uint and float works.

Other than that, types must match exactly. Empty arrays are not equal to empty objects, and booleans are never equal to integers.

Returns

whether this JSONValue is equal to rhs
bool opEquals(ref const JSONValue rhs) const @nogc nothrow pure @trusted

ditto