I am using Fancytree jquery plugin with json data to display data in tree format. The question is, I want to display the key names instead of values as my tree nodes. For example,
[{
"title": "Sample json",
"expanded": true,
"folder": true,
"children": [{
"title": "dev",
"folder": true
}, {
"title": "etc",
"folder": true,
"children": [{
"title": "cups"
}, {
"title": "httpd"
}, {
"title": "init.d"
}]
}
Here, I want to display, "title" as my tree node instead of "Sample json" value. How do I do that?
Any help would be appreciated. Thanks in advance!