You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Logical expressions and non-singular filter queries #45
We are erroneously raising a JSONPathSyntaxError when non-singular filter queries appear in logical expressions.
Example:
importjsonpathdata= [
{
"a": "b",
"d": "e"
},
{
"b": "c",
"d": "f"
}
]
query="$[?@..* && @.b]"jsonpath.findall(query, data)
# JSONPathSyntaxError: non-singular query is not comparable, line 1, column 8
This would be the correct behaviour in a comparison expression, as non-singular queries can not be compared, but we are applying the same logic to logical expressions, which is bad.
Activity