JsonSurfer
JsonSurfer copied to clipboard
Create JPATH Compare using not equals (!=)
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)
| ...