Hello! I am working with a tree object that has parent and nested children, displayed with checkboxes. When a child is checked, I need to retrieve the names of the parent and grandparent up to the entire hierarchy. Below is my JSON data:
{
[
Name: All,
checked: false,
children: [
{
Name: 'software',
children: [
{
Name: 'children1',
checked: true,
children: [
{
Name: 'childen2',
checked: true
}
]
}
]
}
]
]
}
https://i.sstatic.net/AfI0v.png
In the JSON, Children2 is selected. I need it in the format like: All -> Software -> Children1 -> Children 2, and so on...