set_root


Description:

public void set_root (Node node)

Sets the root of the JSON data stream to be serialized by the given generator.

The passed `node` is copied by the generator object, so it can be safely freed after calling this function.

Parameters:

this

a generator

node

the root node