Skip to content

Proposal: Matching expressions #7

Description

@gregglind

This might go beyond the original spec, or might belong in a different project :)

What if path bits allowed a limited set of expressions:

$[0 OP value] where OP = [==, >, <, >=, <=, !=, =~] (=~ -> regex on repr)

There are some gross side effects:

  • integer vs string values for value
  • more complicated parsing

(The dirtiness and complication of this partly depends on what OP's are allowed.)

This capability exists in http://goessner.net/articles/JsonPath/ . I have also found it useful in other projects.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions