suppose I have
{
"a": {
"v": "va"
},
"b": {
"v": "vb"
}
}
$..[?(@.v=="va")] returns
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?
suppose I have
$..[?(@.v=="va")]returnshow can I get the key of this object which is
a?https://extendsclass.com/jsonpath-tester.html suports
~, such that$..[?(@.v=="va")]~returns