I have JSON string of Nested Arrays with unequal length elements as shown below , I want to display it in a page using Javascript or Angular.js.
{ [
'id':1,
'value':'tes1'
'nextLevel':['id':12,
'value':'tes12'
'nextLevel':['id':13,
'value':'tes13',
nextLevel:null ],
]
],
['id':2,
'value':'tes2'
'nextLevel':null ]
]
here nextLevel can be null or it can have another array nested, nested array in turn will have another nested array.
I want to display all array elements into a list, with Parent list element have link to child list Elements, until no child element found.
can somebody post the steps on how to perform this task? As I am able to find example for equal length array, but no example can be found for this nested case.