September 15th, 2013, 03:58 PM
Recursion with JSON
Hi to all.I have a JSON that i paste. What i have to do is, take the path of every child with recursion. In ExtJS comboBox i have to put the every child of the JSON. And when i select one, the path way is has to show below.
My problem is with RECURSION.
September 18th, 2013, 05:05 AM
Can you describe your problem more detail? Or show some code
September 18th, 2013, 06:11 AM
http://pastebin.com/edit.php?i=XxBKkY81 here is solution without combobox but with correct recursion.
http://pastebin.com/edit.php?i=6wTu6b8Q here is solution with correct combobox but without recursion.
I have to combine them. With recursion like first code and with combobox like mine, second code.
September 29th, 2013, 10:31 AM
something like this ...
October 8th, 2013, 03:37 PM
First I am posting any solution because I don't understand the asked problem.
But I just want to point out that you are using the word "RECURSION" incorrectly in term of programming. This is not recursion but it is more like "NESTED" JSON DATA.
Although there is nothing to block you from building a JSON like you have but as for programming convention, it is not good idea to have same node name in nested data as a parent node. Such as "children" node name you kept using in your JSON.