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

Parser should throw an error on surplus text following the closing angle bracket of an array index #88

Open
oshadmi opened this issue Jan 27, 2022 · 0 comments

Comments

@oshadmi
Copy link

oshadmi commented Jan 27, 2022

Path such as
$.store.book[0]category
Does not throw an error and is silently ignoring the surplus text category beyond the ]
And is parsed as $.store.book[0]

Can be demonstrated also on https://freestrings.github.io/jsonpath/
The same value is returned with and without the surplus text category.
Parser should throw an error on surplus text.

Notice that If there is a dot delimiter before the surplus text then everything is OK, e.g.,
$.store.book[0].category is working as expeced.

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

No branches or pull requests

1 participant