0.2.5 • Published 3 months ago

serde-json-path v0.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

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.

0.2.5

3 months ago

0.2.4

6 months ago

0.2.3

8 months ago

0.2.2

10 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago