Hi,
I'm having a hard time to Parse the JSON below. It seems to be a 3 level nested JSON.
Simple passing below to PowerApps it just receives {Value:true}. I presume it's reading the first "HasChildren": true
I just want the "LocationName" and "LocationId" for each 3rd level value, I don't need parents "Level1" and "Level2".
That it what I expect from the sample below::
{LocationName:"NY", LocationId:1234},{LocationName:"LA", LocationId:1235}
Sample Body:
{
"HasChildren": true,
"Children": [
{
"HasChildren": true,
"Children": [
{
"HasChildren": false,
"Children": [],
"LocationName": "NY",
"LocationId": 1234,
"ParentId": 2222,
"HasChidren": false
},
{
"HasChildren": false,
"Children": [],
"LocationName": "LA",
"LocationId": 1235,
"ParentId": 2222,
"HasChidren": false
}
],
"LocationName": "Level2",
"LocationId": 2222,
"ParentId": 2218,
"HasChidren": true
}
],
"LocationName": "Level1",
"LocationId": 2218,
"ParentId": null,
"HasChidren": true
}