Skip to content

Wildcards in element names #461

@sheetaldolas

Description

@sheetaldolas

Given following input json

{
"2CBXJC99X":{
         "id":"2CBXJC99X",
         "name":"angular",
         "group":"angular",
         "properties":{
            "hive.password":"‡rehz.agvp.Tyguuk@5g47t402‡",
            "phoenix.password":"‡rehz.agvp.Tyguuk@5g47t402‡",
            "default.password":"‡rehz.agvp.Tyguuk@5g47t402‡",
            "spark2.password":"‡rehz.agvp.Tyguuk@5g47t402‡",
            "spark.password":"‡rehz.agvp.Tyguuk@5g47t402‡",
            "psql.password":"‡rehz.agvp.Tyguuk@5g47t402‡",
            "hive_interactive.password":"‡rehz.agvp.Tyguuk@5g47t402‡"
         }
      }
}

How do we create json path to get all elements ending with password.

Something like $/*/properties/*password and $/*/properties/*password* ? But that does not seem to work. Is it already possible? If yes how? If not, can support for it be added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions