JSON processing tasks for @metreeca/mime.
npm install @metreeca/gear # the job executor
npm install @metreeca/mime-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 documents into values, selects nested values by path, filters values against validation constraints, and narrows them to the expected primitive types.
See