<#if isRoot> [{ "text": "<@s.m "bbsTopicType.root"/>", "classes": "folder" <#if list?size gt 0>, "expanded": true, "children": [ <#list list as type> { "id": "${type.id}", "text": "${type.name}", "classes": "<#if type.child?size gt 0>folder<#else>file", "hasChildren": <#if type.child?size gt 0>true<#else>false }<#if type_has_next>, ] }] <#else> [ <#list list as type> { "id": "${type.id}", "text": "${type.name}", "classes": "<#if type.child?size gt 0>folder<#else>file", "hasChildren": <#if type.child?size gt 0>true<#else>false }<#if type_has_next>, ]