Is it possible to search for a specific property regardless of where it appears in the tree? Given a JSON document
{
"foo": 1,
"a": {
"foo": 2,
"b": {
"foo": 3,
"bar": 4,
"baz": 5
}
}
}
I want to find all occurrences of property foo without a-priori knowledge of the document structure, yielding the same results as grepping the JSON data or using DOM querySelectorAll():
["foo", "a.foo", "a.b.foo"]
Is it possible to search for a specific property regardless of where it appears in the tree? Given a JSON document
{ "foo": 1, "a": { "foo": 2, "b": { "foo": 3, "bar": 4, "baz": 5 } } }I want to find all occurrences of property
foowithout a-priori knowledge of the document structure, yielding the same results as grepping the JSON data or using DOM querySelectorAll():["foo", "a.foo", "a.b.foo"]