Here is a json snippet containing a definition structure :
{
"Type": "page",
"Label": "Test",
"Children": {
"crud": {
"Type": "crud",
"Datasource": "crud_data",
"Children": {
"level1": {},
"group": {
"Type": "group",
"level2": {},
"Children": {
"level3a": {},
"level3b": {},
"level3c": {}
}
}
}
}
}
}
I'm trying to find a JSON expression to find every key under "Children", which do not contain any "Type" property inside.
How to say "no Type property" inside an object ?
In the example, I'm expecting this result:
[
"level1",
"level3a",
"level3b",
"level3c"
]
Note the "crud" and "group" are excluded because they define a "Type" property. Other objects are empty in the example, but could contain properties other the Type and should still match.
I imagine a solution like this : $..Children.*[?(a filter here saying no Type)]~
Thank you for your help