Serializes node and all its children into json. Any node siblings will be ignored.
the node that will be the root level json object
the json-p generator for writing the json
json-p