new table to tree logic, new tree.json