We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON : { "key" : "value", "array" : { "key" : 1 }, { "key" : 2, "dictionary": { "a": "Apple", "b": "Butterfly", "c": "Cat", "d": "Dog" } }, { "key" : 3 } ] }
Extraction Query: $.array[?(@.key=2)].dictionary.b
Result: [ "Butterfly" ]
Im trying using your library giving an output of empty list
validationObj.jsonPath ="$.array[?(@.key=2)].dictionary.b"
JsonPath.read(responseJSONData, validationObj.jsonPath) -->[ ] instead of ["Butterfly"]
Please your help is appreciated
The text was updated successfully, but these errors were encountered:
Hi, just as an information I guess this is related to one of the concerns I've raised in this issue: #114
Sorry, something went wrong.
Here is the correctly formatted JSON.
{ "key": "value", "array": [ { "key": 1 }, { "key": 2, "dictionary": { "a": "Apple", "b": "Butterfly", "c": "Cat", "d": "Dog" } }, { "key": 3 } ] }
I think this expression gives the answer you seek.
$.array[?(@.key==2)].dictionary.b
On 9 September 2015 at 16:13, Franck Michel notifications@github.com wrote:
Hi, just as an information I guess this is related to one of the concerns I've raised in this issue: #114 #114 — Reply to this email directly or view it on GitHub #120 (comment).
Hi, just as an information I guess this is related to one of the concerns I've raised in this issue: #114 #114
— Reply to this email directly or view it on GitHub #120 (comment).
Warwick Hunter K1300S/R1200GSA m: +61 4 1242 1576 skype: warwickhunter
No branches or pull requests
JSON :
{
"key" : "value",
"array" :
{ "key" : 1 },
{ "key" : 2, "dictionary": {
"a": "Apple",
"b": "Butterfly",
"c": "Cat",
"d": "Dog"
} },
{ "key" : 3 }
]
}
Extraction Query:
$.array[?(@.key=2)].dictionary.b
Result:
[
"Butterfly"
]
Im trying using your library giving an output of empty list
validationObj.jsonPath ="$.array[?(@.key=2)].dictionary.b"
JsonPath.read(responseJSONData, validationObj.jsonPath) -->[ ] instead of ["Butterfly"]
Please your help is appreciated
The text was updated successfully, but these errors were encountered: