0.3.2 • Published 4 months ago

serde-json-path v0.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 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.3.0

7 months ago

0.3.2

4 months ago

0.3.1

7 months ago

0.2.5

1 year ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago