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

error in JsonExtendedParser #140

Open
mwette opened this issue Oct 1, 2023 · 1 comment
Open

error in JsonExtendedParser #140

mwette opened this issue Oct 1, 2023 · 1 comment

Comments

@mwette
Copy link

mwette commented Oct 1, 2023

I could not get an extended parser form (something like) "$..key[?(@.sub == "bar"] to work. Tried many forms. Then I started digging into the code and I ran across what I show below. It looks odd (having put together a number of lalr grammars myself). I'd expect the rule to be something like "sorts: sorts sort". Just thought I'd report .

    def p_sorts_comma(self, p):
        "sorts : sorts sorts"
        p[0] = p[1] + p[2]
@kurtmckee
Copy link

@mwette If you can provide the following information I think it will be easier to understand how to address this issue:

  • A relatively simple base document
  • The JSON path to apply to the document using .find()
  • The expected output

These three values can be plugged directly into the test suite to help identify the root cause.

If you can provide the full document you're working with, that's great, but if you're able to reduce the document to the smallest size that reproduces the issue it will be helpful! 👍

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

2 participants