Skip to content

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

@sansmoraxz

Description

@sansmoraxz

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)
|        ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions