vibe.d beta banner
get vibe.d
0.7.30

Function Json.opCmp

Compares two JSON values.

If the types of the two values differ, the value with the smaller type id is considered the smaller value. This differs from ECMA script, which performs a type conversion before comparing the values.

JSON values of type Object cannot be compared and will throw an exception.

Prototype

int opCmp(
  ref const(Json) other
) const;
block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License