get_root


Description:

public Node? get_root ()

Returns the root of the currently constructed tree.

if the build is incomplete (ie: if there are any opened objects, or any open object members and array elements) then this function will return `NULL`.

Parameters:

this

a builder

Returns:

the root node