Node.initArray

json.node.Node initArray(json.array.Array array = null)

Initializes node to [json.types.NodeType.Array] and sets array into it.

This function will take a reference on array.

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

Parameters

arraythe JSON array to initialize node with, or NULL

Returns

the initialized node