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 crashes with kebab case identifiers #74

Open
bumblebeen opened this issue Dec 7, 2022 · 1 comment
Open

Parser crashes with kebab case identifiers #74

bumblebeen opened this issue Dec 7, 2022 · 1 comment

Comments

@bumblebeen
Copy link

bumblebeen commented Dec 7, 2022

I have a json below with a query of "item.foo-bar"

{
    "item": {"foo-bar": "baz"}
}

If I run something like compile("item.foo-bar")
The parser crashes with this error.

Unable to compile expression "item.foo-bar": syntax error token recognition error at: '-b' at position 8, syntax error extraneous input 'ar' expecting <EOF> at position 10

io.burt.jmespath.parser.ParseException: Unable to compile expression "item.foo-bar": syntax error token recognition error at: '-b' at position 8, syntax error extraneous input 'ar' expecting <EOF> at position 10

I played around jmespath and I believe it should be supported with the java-client

jmespath example

@chadselph
Copy link

Not sure if you already found this but you should be able to use item."foo-bar" as the expression.

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