Code/Plugins/WebUI/www/common_modules/js/build_treeview_data.js
/* this function will convert json data to treeview data so that we can easily show on treeview */
this function will convert json data to treeview data so that we can easily show on treeview
this function will convert json data to treeview data so that we can easily show on treeview
function convert_to_treeview_data(json) {
    var data = [];
    var count = 0;
    for (var key of Object.keys(json)) {
        if (key.length > 0) {
            if (typeof json[key] == 'object') {
                const nodes = get_node(json[key]);
                data.push(build_node(key, null, count, nodes));
            } else {
                data.push(build_node(key, json[key], count, null));
            }
        }
        ++count;
    }
    return data;
}
function convert_to_treeview_data ( json ) { var data = [ ] ; var count = 0 ; for ( var key of Object . keys ( json ) ) { if ( key . length > 0 ) { if ( typeof json [ key ] == 'object' ) { const nodes = get_node ( json [ key ] ) ; data . push ( build_node ( key , null , count , nodes ) ) ; } else { data . push ( build_node ( key , json [ key ] , count , null ) ) ; } } ++ count ; } return data ; }
this function will convert json data to treeview data so that we can easily show on treeview
this function will convert json data to treeview data so that we can easily show on treeview