Skip to content

Filter expression operator precedence #41

Closed

Description

@jg-rp

When parsing JSONPath filter expressions, we are not giving the logical not operator (!) a higher precedence than logical or (||) and logical and (&&).

>>> import jsonpath
>>> str(jsonpath.compile("$[[email protected] || [email protected]]"))
"$[?!(@['a'] || !@['b'])]"

Activity

  1. added
    bug
    on Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    JSONPathbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions