{
	{% if lsItem.abbreviatedStatement is not empty %}
		"title":{{ lsItem.abbreviatedStatement|json_encode|raw }},
	{% else %}		
		"title":{{ lsItem.fullStatement|json_encode|raw }},
	{% endif %}
    "humanCoding":{{ lsItem.humanCodingScheme|json_encode|raw }},
    "key":{{ lsItem.id|json_encode|raw }}
    {% if lsItem.children is not empty %}
        , "folder": true, 
        "expanded": false, // lower nodes are not expanded by default
        "children": [
            {% for childWithId in lsItem.children %}
                {% if not loop.first %}, {% endif %}
                {% set child = items[childWithId.id] %}
                {% include 'CftfBundle:DocTree:render_child.json.twig' with { 'lsItem':child, 'lsDoc':lsDoc, 'items':items} %}
            {% endfor %}
        ]
    {% endif %}
}

{
    "abbrStmt":{{ lsItem.abbreviatedStatement|json_encode|raw }},
    "fullStmt":{{ lsItem.fullStatement|json_encode|raw }},
    "humanCoding":{{ lsItem.humanCodingScheme|json_encode|raw }},
    "listEnum":{{ lsItem.listEnumInSource|json_encode|raw}},
    "key":{{ lsItem.id|json_encode|raw }}
    {% if lsItem.children is not empty %}
        , "folder": true,
        "expanded": false,{# lower nodes are not expanded by default #}
        "children": [
            {% for childWithId in lsItem.children %}
                {% if not loop.first %}, {% endif %}
                {% set child = items[childWithId.id] %}
                {% include 'CftfBundle:DocTree:render_child.json.twig' with { 'lsItem':child, 'lsDoc':lsDoc, 'items':items} %}
            {% endfor %}
        ]
    {% endif %}
}

Send more data for each listed in to tree javascript for tree view
Send more data for each listed in to tree javascript for tree view
