Comments (5)
There is no underlying script engine. The filter is parsed and evaluated in java. The implementation is very limited.
from jsonpath.
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.
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.
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.
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)
- Remove Analytics image from README
- Trailing newline character in path is not handled
- How to get the first element after filtering?
- It can not work if i use array index after ?(@ expression HOT 1
- Update the deps with a deps bot?
- Issue with WildCard in jsonPath after #786
- Getting the last element after filtering doesn't seem to work HOT 3
- Version update from 0.8.1 to 2.9.0 -> error - not found : PathTokenizer , PathToken is not a member of com.jayway.jsonpath.internal
- Filter inside Array return wrong results
- The number read is counted by Scientific notation
- .set() method should add the key value if its not present HOT 1
- Support XPATH function substring-before,substring-after,translate
- Union of missing properties returns empty object
- Add support for custom Functions registration
- changelog.md is not updated HOT 1
- Provides transitive vulnerable dependency maven:com.jayway.jsonpath:json-path:2.8.0 CVE-2023-51074 5.3 Out-of-bounds Write vulnerability with Medium severity found Results powered by Checkmarx(c) HOT 2
- [2.8.0, 2.9.0] Aggregation function attempted to calculate value using empty array
- How to reference name of element itself when doing a filter
- Configuration method name does not match function
- Consider implementing RFC 9535 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsonpath.