0

Trying to access some data by key, where key itself stored in some field

{
    "keyName": "bbb",
    "storage": {
        "aaa": "111",
        "bbb": "222",
        "ccc": "333"
    }
}

In JavaScript (and most other languages) it will be data.storage[data.keyName], but unfortunately I need JMESPath solution...

Trying to do something like storage[$.keyName], but nothing works

Gheljenor
  • 362
  • 3
  • 3

0 Answers0