May I know how can go get the keys of nested JSON key value pairs of a specific value?
For example,
{“a”:[“Math”],
“b”:,
“c”:[“Science”:[“Physics”]]
}
I wish to get output something like,
[“c”][“Science”] or similar so that I can automate the clicking of respective link to go to Physics page.
What if it is user specified, like for example it is not necessary Physics for every case, it may be Math, is there a dynamic way to get all the parent key?
@Lee_Hong_Yan Here, we access the Contents of Science, Physics is the Resultant Content. If there are other values within the Science JArray, it would also be retrieved.
However, Do Perform a Testing with different data that you have, we can formulate what we need to accordingly if it doesn’t satisfy any of the sample data.
But the problem I faced is the json is deeply nested and for all the cases, the targetted child(value) is following different nested path of the json(not predictable). Is there a way to get the key of the deeply nested value bottom up to the upmost parent?