<#if isRoot> [{ "text": "<@s.m "channel.root"/>" <#if list?size gt 0>, "expanded": true, "children": [ <#list list as bbsforum> { "id": "${bbsforum.id}", "text": "${bbsforum.title}", "hasChildren": <#if bbsforum.postTypes?size gt 0>true<#else>false }<#if bbsforum_has_next>, ] }] <#else> [ <#list list as postType> { "id": "${postType.id},${postType.forum.id}", "text": "checked='checked' onclick='checkboxChildSelect(${postType.forum.id},${postType.id})' <#if postType.parent??>id='forumId_${postType.forum.id}_${postType.parent.id}_${postType.id}'<#else>id='forumId_${postType.forum.id}_${postType.id}' />${postType.typeName}", "hasChildren":<#if postType.childs?size gt 0>true<#else>false }<#if postType_has_next>, ]