Forum Discussion

deepashikha's avatar
deepashikha
Occasional Contributor
2 years ago

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:

}

}

}

 

 

  • nmrao's avatar
    nmrao
    Champion Level 3
    Possible to provide a valid sample json, need not be exact response.