KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I would like to generate an HTML tree (preferably UL-LI) from the JSON example below. Does anyone have a simple , recursive JS function (not a framework) that can handle this specific structure? Thanks for your help! { "folder" : [ { "title" : "1", "folder" : [ { "title" : "1.1", "folder" : [ { "title" : "1.1.1", } , { "title" : "1.1.2", } ] } ] } , { "title" : "2", } ] }
Tags (comma-separated)
Save Edits
Cancel