get_boolean


Description:

public bool get_boolean ()

Gets the boolean value stored inside a node.

If the node holds an integer or double value which is zero, `FALSE` is returned; otherwise `TRUE` is returned.

If the node holds a `JSON_NODE_NULL` value or a value of another non-boolean type, `FALSE` is returned.

Parameters:

this

a node holding a boolean value

Returns:

a boolean value.