deepashikha
2 years agoOccasional Contributor
parse the response to get count of an element and get the value
I want to parse the response of my API , where the structure is like below.Here I want to get the occurances of link and get all the links from the response in a file/excel.I have around 200+ child nodes and it is not consistent
parent {
Child1{
name:
link:
}
child2{
name:
link:
subchild1{
name:
link:
}
subchild2{
name:
link:
}
subchild3{
name:
link:
}
}
child3{
name:
link:
subchild1{
name:
link:
}
subchild2{
name:
link:
}
subchild3{
name:
link:
}
}
subchild2{
name:
link:
}
}
child4{
name:
link:
subchild1{
name:
link:
}
subchild2{
name:
link:
}
subchild3{
name:
link:
}
}
}