the data structure has multiple levels of nesting, as follows: the only value obtained so far is "521". How to traverse to get "1045-SCG" and "968"
:
[
{
"value": "1045-SCG",
"label": "",
"children": [
{
"value": "968",
"label": "",
"children": [{
"value": "521",
"label": "",
}]
}
]
},
{
"value": "1044-SCG",
"label": "111",
"children": []
},
,
{
"value": "1036-SCG",
"label": "",
"children": [
{
"value": "264",
"label": "",
"children": [
{
"value": "271",
"label": "",
"children": []
}
]
}]
}
]