Hi, I am trying to filter an Array like this:
[ {
"folder" : "User/Admin/UserA",
"User" : "Linda"
},
{
"folder" : "User/Service/UserB",
"User" : "John"
},
{
"folder" : "User/Admin/UserC",
"User" : "Peter"
} ]
I want to get a Array with all Clusters where folder contains "Admin"
This $Path gives me one result in my case.
$..[?(@.folder=="User/Admin/UserA")]
How can I receive all folders? Something like $..[?(@.folder=="User/Admin/*")] isn't working. Are regEx operators (=~) or the query command contains not working?
Thank you,
Albert