Node.init_

Initializes a node to a specific type.

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

Parameters

type json.types.NodeType

the type of JSON node to initialize node to

Return Value

Type: json.node.Node

the initialized node