Use an index found in a array as a selector to another array #188
-
Considering this JSON
How would you path to barValue using the index of "bar" in the titles array? |
Beta Was this translation helpful? Give feedback.
Answered by
marcusolsson
Oct 13, 2021
Replies: 1 comment
-
I'd have to know more about the use case, but could you use something like this? $.values[?(@ == @parent.titles[1]+"Value")] |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wolicodes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd have to know more about the use case, but could you use something like this?