Here is a representation of a dynamic array I have:
nodes: [
{
n1: "Foods",
},
{
n4: "Drinks",
b7: [
{
a2: "Beers",
a4: [
{
a5: "Budweiser",
a6: "example",
},
{
a7: "Heineken",
},
{
a8: "1",
a9: "2",
},
],
},
{
z1: "Wines",
},
{
z2: "Whiskey",
},
],
},
]
This array is constantly changing. In order to visualize the key relationships in this array, I want to display them in a tree table. Here's an example of how it should look:
n1
n4
b7
a2
a4
a5
a6