extract an element from json Array #3439
Unanswered
SPulivarthi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to extract an element from a json array.
example:
{
"wait_time": 10,
"allocation": "net",
"values": [
{
"a": 1,
"b":2,
"c":3
},
{
"a": 81,
"b":75,
"c":57
},
{
"a": 43,
"b":77,
"c":92
},
{
"a": 55,
"b":24,
"c":32
},
{
"a":81,
"b":27,
"c":31
}
]
}
now I need all the 'b' values from the array. Is there any API which can handle this requirement
path=values[].b or path=values[*].b
now the API should return {2,75,77,24,27}
Beta Was this translation helpful? Give feedback.
All reactions