Hi ,
Hope you can understand my requirement by seeing json example which i have posted bellow.
Graph
{
"personName": "",
"community": [
{
"communityName": "",
"country": [
{
"countryName": "",
"state": [
{
"stateName": "",
"area": [
{
"areaName": "",
"visited": [
{
"locationName": ""
}
],
"mediator": [
{
"mediatorName": "",
"visited": [
{
"locationName": ""
}
]
}
]
}
]
}
]
}
]
}
]
}
Required OutPut
{
"areas": [
{
"areaName": "",
"visited": [
{
"locationId": "123"
},
{
"locationId": "1234"
}
]
}
]
}
(Or)
{
"areas": [
{
"areaName": "",
"visited": [
{
"locationId": "123"
}
],
"visitedthroughmediator": [
{
"locationId": "1234"
}
]
}
]
}