I want to find all the dependent of a particular item from an object.
{
"x": ["a", "b"],
"a": ["1", "2"],
"b": [],
"1": ["abc"],
"2": [],
"abc": []
}
Desired output: all the dependencies of items
{
"x" : ["a", "b", "1", "2", "abc"],
"a" : ["1", "2", "abc"],
"1" : ["abc"]
}
a,b, andabcvariables?aandb(which I imagine you have not defined separately).ais a string that references the propertyaon the Object as opposed to a variablea...