# serde-json-path

> Use serde_json_path in the browser

Latest version **0.3.2** (published 2025-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install serde-json-path
pnpm add serde-json-path
yarn add serde-json-path
bun add serde-json-path
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2025-02-03 |
| First published | 2023-02-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | hiltontj |

## Links

- npm: https://www.npmjs.com/package/serde-json-path
- Repository: https://github.com/hiltontj/serde-json-path-wasm
- Homepage: https://github.com/hiltontj/serde-json-path-wasm#readme
- Issues: https://github.com/hiltontj/serde-json-path-wasm/issues
- npm.io page: https://npm.io/package/serde-json-path

## Recent versions

- 0.3.2 (latest) — 2025-02-03
- 0.3.1 — 2024-11-03
- 0.3.0 — 2024-11-03
- 0.2.5 — 2024-02-24
- 0.2.4 — 2023-11-09
- 0.2.3 — 2023-09-17
- 0.2.2 — 2023-07-13
- 0.2.1 — 2023-04-08
- 0.2.0 — 2023-04-08
- 0.1.3 — 2023-04-02
- 0.1.2 — 2023-03-04
- 0.1.1 — 2023-02-26
- 0.1.0 — 2023-02-25

## README

# serde-json-path

## About

This crate is used to publish the JSONPath parsing and query functionality of the Rust [`serde_json_path`](https://crates.io/crates/serde_json_path) crate into WASM, to be used in a browser.

It is used at [serdejsonpath.live](https://serdejsonpath.live).

## Usage

```javascript
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](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.

---
_Source: https://npm.io/package/serde-json-path · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
