Skip to content
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

Reconsider non-scalar comparisons #31

Closed
glyn opened this issue Jun 17, 2020 · 1 comment
Closed

Reconsider non-scalar comparisons #31

glyn opened this issue Jun 17, 2020 · 1 comment
Labels
comparison This issue relates to https://cburgmer.github.io/json-path-comparison/

Comments

@glyn
Copy link
Contributor

glyn commented Jun 17, 2020

For example, running the selector:

$[?(@[*] > 3)]

against the document:

[[1,2],[3,4],[5,6]]

produces the result consisting of a single entry:

[5, 6]

Some implementations, such as Proposal A, fail to parse non-scalar comparisons.

@glyn glyn added the comparison This issue relates to https://cburgmer.github.io/json-path-comparison/ label Jun 17, 2020
@glyn
Copy link
Contributor Author

glyn commented Jun 25, 2020

See #3 (comment) for a bit of theory about this. Keeping this behaviour for now unless and until a standard says otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comparison This issue relates to https://cburgmer.github.io/json-path-comparison/
Projects
None yet
Development

No branches or pull requests

1 participant