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

Create JPATH Compare using not equals (!=) #76

Open
sansmoraxz opened this issue May 3, 2022 · 0 comments
Open

Create JPATH Compare using not equals (!=) #76

sansmoraxz opened this issue May 3, 2022 · 0 comments

Comments

@sansmoraxz
Copy link

I am not sure if it was implemented but if I want to compare like say:-

JsonPathCompiler.compile("$.data[?(@.age!=18)]")

it throws exception

|  Exception org.antlr.v4.runtime.misc.ParseCancellationException
|        at BailErrorStrategy.recoverInline (BailErrorStrategy.java:66)
|        at Parser.match (Parser.java:206)
|        at JsonPathParser.filter (JsonPathParser.java:777)
|        at JsonPathParser.relativePath (JsonPathParser.java:293)
|        at JsonPathParser.path (JsonPathParser.java:145)
|        at JsonPathCompiler.compile (JsonPathCompiler.java:283)
|        at (#18:1)
|  Caused by: org.antlr.v4.runtime.InputMismatchException
|        at BailErrorStrategy.recoverInline (BailErrorStrategy.java:61)
|        ...
@sansmoraxz sansmoraxz changed the title Create JPATH Compare using not equals Create JPATH Compare using not equals (!=) May 4, 2022
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