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
loc.indexOf is not a function
I get this error with a specific expression: loc.indexOf is not a function
Given this json payload:
{ "stores": [ { "name": "Store 1"}, { "name": "Store 2" }, { "name": "Store 3" }, { "name": "Store 4"} ] }
When I apply this path $.stores[1:4:2][(@.length-1)].name Then I get an error: loc.indexOf is not a function.
$.stores[1:4:2][(@.length-1)].name
Please note that this expression ($.stores[1:4:2]) returns:
$.stores[1:4:2]
[ { "name": "Store 2" }, { "name": "Store 4" } ]
And this expression ($.stores[(@.length-1)].name) returns:
$.stores[(@.length-1)].name
[ "Store 4" ]
There should be no error.
"Store 4"
The text was updated successfully, but these errors were encountered:
Getting the same error on deleting an element from an array inside callback. But splice solve it.
callback
splice
Sorry, something went wrong.
No branches or pull requests
Describe the bug
I get this error with a specific expression:
loc.indexOf is not a function
Code sample or steps to reproduce
Given this json payload:
When I apply this path
$.stores[1:4:2][(@.length-1)].name
Then I get an error:
loc.indexOf is not a function
.Please note that this expression (
$.stores[1:4:2]
) returns:And this expression (
$.stores[(@.length-1)].name
) returns:[ "Store 4" ]
Expected behavior
There should be no error.
Expected result
"Store 4"
Environment (IMPORTANT)
Desktop**
The text was updated successfully, but these errors were encountered: