Performant JSONPath implementation that focusses on results
Features
- Fast
- Extended syntax support
- Error safe, using a simple Maybe functor under the hood
- Memoized compilation of queries
- 100% code coverage
Syntax
COMING SOON
Installation
$ npm install --save @f5io/jsonpath
or if you have yarn installed on your machine
$ yarn add @f5io/jsonpath
Usage
const jp = require('@f5io/jsonpath');
const jsonPathQueryStr = '$..h[?(@.foo>13)]';
const result = jp(jsonPathQueryStr,jsonObject);
Contributors
- Joe Harlow @f5io
- Amit Gupta @amitguptagql