| Crates.io | json_walk |
| lib.rs | json_walk |
| version | 0.1.0 |
| created_at | 2025-10-12 14:52:32.059777+00 |
| updated_at | 2025-10-12 14:52:32.059777+00 |
| description | Access values in your JSON data using string paths (e.g. "result.item[0].value"). |
| homepage | https://github.com/j-p-d-e-v/json-walk |
| repository | https://github.com/j-p-d-e-v/json-walk |
| max_upload_size | |
| id | 1879380 |
| size | 17,176 |
Access values in your JSON data using string paths (e.g. "result.item[0].value").
cargo add json_walk
use json_walk::{
file_handler::FileHandler,
json_walk
};
use serde_json::Value;
let data = FileHandler::load("storage/test-data/data.json").unwrap();
let walker = json_walk(data);
let result = walker.get("result.item[0].value");
// result.unwrap() -> "apple"
| Pattern | Meaning |
|---|---|
a.b.c |
object key access |
a[0] |
array index access |
status |
top-level key |
a[0].value |
array index the key access |
obj["key"]a.value\.1See LICENSE for details.