Tree Layout - Construct JSON