reqrio-json

Crates.ioreqrio-json
lib.rsreqrio-json
version0.1.5
created_at2025-12-21 09:32:42.725423+00
updated_at2026-01-10 18:04:38.784372+00
descriptionreqrio json lib
homepage
repository
max_upload_size
id1997752
size50,767
(xllgl2017)

documentation

README

json


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();
}
Commit count: 0

cargo fmt