Parser.getRoot

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 json.parser.Parser.stealRoot.

class Parser
getRoot
()

Return Value

Type: json.node.Node

the root node.