get_int


Description:

public int64 get_int ()

Gets the integer value stored inside a Node.

If the node holds a double value, its integer component is returned. If the node holds a false boolean value, `0` is returned; otherwise a non-zero integer is returned. If the node holds a json_node_null value or a value of another non-integer type, `0` is returned.

Parameters:

this

a Node of type json_node_value

Returns:

an integer value.