Node


Description:

[ CCode ( has_construct_function = false ) ]
public Node (NodeType type)

Creates a new node holding the given type.

This is a convenience function for [ctor@Json.Node.alloc] and [method@Json.Node.init], and it's the equivalent of:

```c json_node_init (json_node_alloc (), type); ```

Parameters:

type

the type of the node to create

Returns:

the newly created node