| Crates.io | reqrio-json |
| lib.rs | reqrio-json |
| version | 0.1.5 |
| created_at | 2025-12-21 09:32:42.725423+00 |
| updated_at | 2026-01-10 18:04:38.784372+00 |
| description | reqrio json lib |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1997752 |
| size | 50,767 |
fn main() {
let object = object! {
"foo": 42,
"bar": false,
};
let array = array![
{
"foo": 42,
"bar": fase
}
];
}
Get/Set value by xpath:
fn get_set_value(){
let mut data=json::object!{"code": 0, "msg": "success", "data":[{"entityId": 1116288, "skuBatchProperty": 2}]};
data.set_value_by_xpath(".data.[0].entityId", 123).unwrap();
data.get_value_by_xpath(".data.[1].skuBatchProperty").unwrap();
}