JSON processing tasks for @metreeca/gear.
npm install @metreeca/gear # the job execution API
npm install @metreeca/gear-json # this package
Node.js 22 or later is required.
TypeScript consumers must use "moduleResolution": "nodenext"/"node16"/"bundler" in tsconfig.json.
The legacy "node" resolver is not supported.
| Task | Description |
|---|---|
json() |
JSON parser |
jpath() |
JSON path selector |
validate() |
JSON value validator |
This project is licensed under the Apache 2.0 License – see LICENSE file for details.
JSONPath-like selector over JSON values.
JSON processing tasks.
Parses JSON payloads, addresses the values they hold by path, retains the ones meeting the constraints a consumer states, and narrows them to the types it expects.
See