0.1.2 • Published 5 months ago
jsonpath-js v0.1.2
jsonpath-js
An implementation of RFC 9535 JSONPath
Features
- 100% Compatible with RFC 9535
Supported Runtimes
- Node v20+
- Deno v2+
Install
npm install jsonpath-js
Usage
import { JSONPathJS } from "jsonpath-js";
const query = new JSONPathJS("$.users[*].name");
const result = query.find({
users: [{ name: "John Doe" }, { name: "Jane Doe" }],
});
// [ 'John Doe', 'Jane Doe' ]
console.log(result);
Contributing
Please read the contributing guide.