I have a Web application that consumes data from another Web service and they are in JSON format. I subscribed the data as results[]
and I can access each of field by getting each of index in html, for example, {{results?.ABC.D[0].Name[0]}}
and it returns Susan
. (Please refer to the data sample below).
What I want to do is to search in results
to find out Name
and return G
. Basically, I would like to acquire G
's when they are in a same array D
with Name
.
{
"ABC": {
"D": [
{
"Name": [ "Susan" ],
"F": [ "School_0" ],
"G": [ "14" ]
},
{
"Name": [ "Lydia" ],
"F": [ "School_1" ],
"G": [ "284" ]
}
]
}
}