serde-json-path
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

serde-json-path

About

This crate is used to publish the JSONPath parsing and query functionality of the Rust serde_json_path crate into WASM, to be used in a browser.

It is used at serdejsonpath.live.

Usage

const obj = {
  "foo": [
    "bar",
    "baz"
  ]
};

// Being a WASM package, serde-json-path loads asynchronously:
import("serde-json-path")
  .then(({ JsonPath })=> {
    const path = JsonPath.parse("$.foo.*");
    const nodes = path.query(obj);
    // nodes -> ["bar", "baz"]
  })

Build

Build with wasm-pack build

wasm-pack build

Publish to NPM with wasm-pack publish

wasm-pack publish

License

MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be dual licensed as above, without any additional terms or conditions.

Readme

Keywords

none

Package Sidebar

Install

npm i serde-json-path

Weekly Downloads

1

Version

0.3.1

License

MIT

Unpacked Size

1.45 MB

Total Files

7

Last publish

Collaborators

  • hiltontj