-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
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
Array slice on object, scalar response or not? #5
Comments
I'm not sure I understand your answer. The link mentions all implementations, but the anchor highlights the Kotlin example, which is why I'm raising the issue here. |
sorry @cburgmer . I was wrong. My fault. |
Hi again, yes you're right, makes sense to return |
This is addressed now for the upcoming version 2.0.0 release. I did a similar change for selectors like |
2.0.0 is now released addressing this issue, closing |
Running the array slice operator (e.g.
$[1:3]
) against an object (e.g.{}
) currently returnsnull
(see https://cburgmer.github.io/json-path-comparison/results/array_slice_on_object.html#Kotlin_com.nfeld.jsonpathlite).As a user I would probably expect
[]
instead, considering the query is supposed to return multiple matches?The text was updated successfully, but these errors were encountered: