Skip to content

fix/1043 empty array handling in filter expressions#1044

Open
kavyaNamballa wants to merge 1 commit intojson-path:masterfrom
kavyaNamballa:master
Open

fix/1043 empty array handling in filter expressions#1044
kavyaNamballa wants to merge 1 commit intojson-path:masterfrom
kavyaNamballa:master

Conversation

@kavyaNamballa
Copy link

Fix: #1043

Empty arrays incorrectly treated as truthy in filter expressions.
So we are return false if the array is empty for exists check

to return false for empty results
@eugeniace
Copy link

Please add a test for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Giving incorrect results when the json path is nested

2 participants