Passing tree to JSON