Method Json.opEquals

Compares two JSON values for equality.

If the two values have different types, they are considered unequal. This differs with ECMA script, which performs a type conversion before comparing the values.

Prototypes

bool opEquals(
  ref const Json other
) const;

bool opEquals(
  const Json other
) const;

const(bool) opEquals();

const(bool) opEquals(
  bool 
);

const(bool) opEquals(
  long 
);

const(bool) opEquals(
  double 
);

const(bool) opEquals(
  string 
);

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.