0.1.2 • Published 1 year ago

jsonpath-js v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

jsonpath-js

GitHub License NPM Version Link Checker

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.

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago