Comments (2)
I think jp.value()
will do what you want here -- now optimized to stop traversing once it has found the first matching value. In addition, jp.query()
, jp.nodes()
, and jp.paths()
now take an optional count
parameter specifying a number of elements to match.
from jsonpath.
👍
from jsonpath.
Related Issues (20)
- Updating the version of static-eval used in jsonpath
- output of stringify function not compatible with query function HOT 1
- require.resolve in aesprim.js seems to be throwing an error
- SQL/JSONPath support HOT 1
- F HOT 1
- Path containing Chinese appears to be unable to extract results
- Unable to use jsonpath with browserify HOT 3
- cannot bundle with CDK/esbuild and use in AWS Lambda HOT 6
- Struggling with "update or create in array" functionality HOT 4
- `jp.parent(o, failingPath)` throws meaningless error
- jp.value doesn't always work
- Error: Can't walk dependency graph: Cannot find module '..' HOT 1
- Cannot use typeof inside filter script
- Found a possible security concern
- Project is failing snyk scans due to SNYK-JS-WORDWRAP-3149973
- `.apply` skips the last path HOT 7
- obj needs to be an object
- member-child-identifier parse wrong !
- Consider implementing RFC 9535 HOT 1
- Square brackets & double quotes in keys
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.