The write_node_tree() will now actually produce a json file with connected nodes.