init


Description:

[ Version ( since = "0.16" ) ]
public unowned Node init (NodeType type)

Initializes a this to a specific type.

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

Parameters:

this

the node to initialize

type

the type of JSON node to initialize this to

Returns:

the initialized node




2022 vala-language.org