Node.initBoolean

json.node.Node initBoolean(bool value)

Initializes node to [json.types.NodeType.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

valuea boolean value

Returns

the initialized node