javascript - How to render nested JSON using jquery in ul and li -
i facing 2 issues 1.i not getting proper html structure see below picture currently getting html structure: what looking html structure: how make code dynamic json, eg, json may have 4 level of sub menus not able write loops , condition, trying render json writing nested loops here code tried: $(document).ready(function(){ var treejson = {"values":[ { "tree_title":"fashionworld1", "tree_image":"img_arrow", "tree_image_position":"1", "tree_image":"fashionworld", "isopen":"0", "child":[ { "values":[ { "tree_title":"submenulevel11", "tree_image":"img_arrow", "t...