An implementation of RFC 9535 JSONPath
- 100% Compatible with RFC 9535
npm install jsonpath-js
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);
npm install
npm run test