3 unstable releases

0.1.1 Oct 17, 2023
0.1.0 Oct 16, 2023
0.0.1 Oct 21, 2022

#811 in Data structures

MIT/Apache

41KB
1K SLoC

rjson  

ci Latest Version downloads

rj = "0.1"

Demo

fn main() {
    pretty_env_logger::init();

    let john = serde_json::json!({
        "name": "John Doe",
    });

    let json: rj::RJson = john.into();
    let effect_json = json.clone();
    let _eff = rj::effect(move || {
        println!("effect fn1 -> name: {:?}", effect_json.get("name"));
    });
    json.set("name", "zhangsan");
}

Dependencies

~0.5–1.1MB
~23K SLoC