closed #1 convertTreeChartToJson structure json same input structure