Node.initObject

json.node.Node initObject(json.object.ObjectWrap object = null)

Initializes node to [json.types.NodeType.Object] and sets object into it.

This function will take a reference on object.

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

Parameters

objectthe JSON object to initialize node with, or NULL

Returns

the initialized node