init_boolean


Description:

[ Version ( since = "0.16" ) ]
public unowned Node init_boolean (bool value)

Initializes this to `JSON_NODE_VALUE` and sets value into it.

If the node has already been initialized once, it will be reset to the given type, and any data contained will be cleared.

Parameters:

this

the node to initialize

value

a boolean value

Returns:

the initialized node