-
Notifications
You must be signed in to change notification settings - Fork 39
Returning key of found object #46
Copy link
Copy link
Open
Description
suppose I have
{
"a": {
"v": "va"
},
"b": {
"v": "vb"
}
}
$..[?(@.v=="va")] returns
[
{
"v":"va"
}
]
how can I get the key of this object which is a ?
https://extendsclass.com/jsonpath-tester.html suports ~, such that $..[?(@.v=="va")]~ returns
[
"a"
]
How can I do this in JsonPath-PHP?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels