get_root


Description:

public unowned Node? get_root ()

Retrieves the top level node from the parsed JSON stream.

If the parser input was an empty string, or if parsing failed, the root will be `NULL`. It will also be `NULL` if it has been stolen using [ method@Json.Parser.steal_root].

Parameters:

this

a parser

Returns:

the root node.