Jump to content

SahnAlbert

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by SahnAlbert

  1. 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

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.