Code Monkey home page Code Monkey logo

Comments (5)

kallestenflo avatar kallestenflo commented on August 21, 2024

There is no underlying script engine. The filter is parsed and evaluated in java. The implementation is very limited.

from jsonpath.

frmichel avatar frmichel commented on August 21, 2024

Hi there,

Thx for your reply and sorry for my late reply in turn.

"The filter is parsed and evaluated in java"

The filter is parsed, meaning parsed as which language? What is the kind of expression that you expect here?

"this implementation very limited"

Ok I get that, however what is it more precisely: how would I know what kind of expression is allowed and what is not?
There may be a lack of documentation there.

Thanks again,
Franck.

from jsonpath.

kallestenflo avatar kallestenflo commented on August 21, 2024

In version 2.0 basic comparison operators are supported

==
!= 
>
>=
<
<=
=~ (regexp)

&& 
||

you can not use parenthesis to control evaluation like ((@.a == 1 && @.b == 2) || @.c == true)

from jsonpath.

frmichel avatar frmichel commented on August 21, 2024

Hi,

Thx Kallestenflo, good to have a clear idea of the capabilities.

It would probably be a good idea to document this in the README of the project.

Cheers,
Franck.

from jsonpath.

frmichel avatar frmichel commented on August 21, 2024

Another one: the operators you mention work for the filters [?(...)] where the expression evaluates to a boolean.

What about calculated index [(...)] : can you do any calculation with field names, @.length, etc. ?

Franck.

from jsonpath.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.