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

typethe type of JSON node to initialize node to

Returns

the initialized node