vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function Json.opEquals

Compares two JSON values for equality.

bool opEquals (
  ref const(Json) other
) @safe const;

bool opEquals (
  const(Json) other
) @safe const;

bool opEquals (
  typeof(null) _param_0
) @safe const;

bool opEquals (
  bool v
) @safe const;

bool opEquals (
  int v
) @safe const;

bool opEquals (
  long v
) @safe const;

bool opEquals (
  std.bigint.BigInt v
) @safe const;

bool opEquals (
  double v
) @safe const;

bool opEquals (
  string v
) @safe const;

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.

Authors

Sönke Ludwig

Copyright

© 2012-2015 RejectedSoftware e.K.

License

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