I have a tree datastructure with nested data.
TreeNodes and DataNodes. Like in a filesystem, the TreeNodes are the folders and the DataNodes are the files.
But the JSON structure is like this:
{
name: 'root',
data: [
[a, b, 100, 23],
[a, b, 100, 23],
[a, b, 100, 23]
...
]
children: [
{
name: 'child1',
data: [...],
children: [...]
},
{
name: 'child2',
data: [...],
children: [...]
},
...
]
}
I want to parse the children to TreeNodes and the data arrays to DataNodes, and use them in one TreeStore.
Is this possible?
ATM I got TreeNodes and every Tree node has an association for its data records, which is a suboptimal solution.