<#ftl output_format="JSON">
[<@cms.categoryList parentId=parentId allowContribute=allowContribute pageIndex=pageIndex pageSize=pageSize>
    <#list page.list as category>
        {
            "name":"${category.name}",
            "url":"${category.url}",
            "code":"${category.code}",
            "pageSize":"${category.pageSize}"
        }<#sep>,
    </#list>
</@cms.categoryList>]