[GIS] Web app for building GeoExt tree configurations

geoextjsonopenlayers-2web-mappingwfs

I have a GeoExt application and looking for approaches for building tree configuration (in JSON format). Now tree configuration is made manually and looks like:

    var treeConfig = new OpenLayers.Format.JSON().write([
    {
        text: "Layers",
        expanded: true,
        icon: "./images/Layers.png",
        children: [
            {
                text: "Nature",
                icon: "./images/globe.png",
                checked: false,
                group: true,
                children: [{
                    nodeType: "gx_layer",
                    layer: "Lakes",
                    icon: "./images/lake.png"
                },
                {
                    nodeType: "gx_layer",
                    layer: "Bogs",
                    icon: "./images/bog.png"
                }]
            }
            ...

But I would like to have web-application which I can use for building such configuration. All layers are published as WFS layers and it is possible to get the list of layers using GetCapabilities request, for example. Please give me any advice or may be known approaches how I can solve my problem.

Related Question