🔍
🏠
Stack Overflow
🎲
Stack Exchange
Stack Overflow
Questions
Tags
Users
About
Stack Overflow
Public
Questions
Tags
Users
About
JMESPath how to query by dynamic key?
Asked
Dec 28 '19 at 15:40
Active
Dec 28 '19 at 15:40
Viewed
172 times
0
How to get "beta" from following structure?
{ "key": "b", "data":{ "a": "alpha", "b": "beta" } }
jmespath
asked Dec 28 '19 at 15:40
MountLion
1
1
1
If the structure is assigned to a variable, e.g. "instance", then as follows … instance["data"]["b"]
–
Denis Giffeler
Dec 28 '19 at 17:16
the value "b" is not deterministic, it's from "key".
–
MountLion
Dec 29 '19 at 13:28
0 Answers
0