Node.this

Creates a new node holding the given type.

This is a convenience function for json.node.Node.alloc and json.node.Node.init_, and it's the equivalent of:

json_node_init (json_node_alloc (), type);
class Node
this

Parameters

type json.types.NodeType

the type of the node to create

Return Value

the newly created node