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.
the root 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.