-
How can I write four commands to extract all four values individually from the following simple JSON example? {
"key": "alpha",
"another.key": "beta",
"another": {
"key": "gamma"
},
"key.three": "delta"
} |
Beta Was this translation helpful? Give feedback.
Answered by
mikefarah
Sep 28, 2022
Replies: 2 comments
-
Because some of the keys have dots (.) in them, you will need to use the special character syntax documented here: https://mikefarah.gitbook.io/yq/operators/traverse-read#special-characters |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lpar
-
Awesome, thanks. It hadn't occurred to me to look under "Special characters" because I didn't think of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because some of the keys have dots (.) in them, you will need to use the special character syntax documented here: https://mikefarah.gitbook.io/yq/operators/traverse-read#special-characters