Ola
I need some help..
Lets say we have this tree structure saved as a b4x list
how do I make this to have this json structure
Thanks
I need some help..
Lets say we have this tree structure saved as a b4x list
B4X:
a
a\anele.txt
a\b
a\b\c\projects.txt
a\b\c\d\e
b\a\c\anele.txt
how do I make this to have this json structure
B4X:
[
{id=1, name="a", parentid=0},
{id=2, name="anele.txt", parentid=1},
{id=3, name="b", parentid=1},
{id=4, name="c", parentid=3},
{id=5, name="projects.txt", parentid=4}
{id=6,name="d", parentid=4},
{id=7,name="e", parentid=6},
{id=8,name="b", parentid=0},
{id=9,name="a", parentid=8},
{id=10,name="c",parentid=9},
{id=11,name="anele.txt",parentid=10}
]
Thanks