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);
  1. this(void* ptr, Flag!"Take" take)
  2. this(json.types.NodeType type)
    class Node

Parameters

type json.types.NodeType

the type of the node to create

Return Value

the newly created node