-
json like blow, how to get the value of "b/c"? {
"a": {
"b/c": 2
}
} I try some transforms config blow but failed:
most error like when I use jq to accessing fields I succeed $ echo '{"a": {"b/c": 2}}' | jq .a.'"b/c"'
$ 2
$ echo '{"a": {"b/c": 2}}' | jq .a'."b/c"'
$ 2 In kubernetes, there are some lables with "/", such as "app_kubernetes_io/name" and "app_kubernetes_io/component", I do not find any method to get those values with "/" in key. |
Beta Was this translation helpful? Give feedback.
Answered by
jszwedko
Feb 15, 2022
Replies: 1 comment 1 reply
-
Answered over here: #11382 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yxyx520
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Answered over here: #11382 (comment)