Is it possible to (and if so how do I) recursively get a list of all objects within an object that contains a property with a given key or a given key in a set of keys using JPath?
Example
For this object searching for the type
property:
[
{
type: 'text'
},
{
type: 'folder',
children:
[
{
type: 'text'
}
]
},
{
name: 'Some object without a type'
}
]
I would get:
[
{
type: 'text'
},
{
type: 'folder'
children:
[
{
type: 'text'
}
]
},
{
type: 'text'
}
]