equal


Description:

[ Version ( since = "1.2" ) ]
public bool equal (Node b)

Check whether this and b are equal Node s, meaning they have the same type and same values (checked recursively).

Note that integer values are compared numerically, ignoring type, so a double value 4.0 is equal to the integer value 4.

Parameters:

this

a JSON node

b

another JSON node

Returns:

true if this and b are equal; false otherwise