Function convertToStandardTreeData