rj

Crates.iorj
lib.rsrj
version0.1.1
sourcesrc
created_at2022-10-21 03:38:29.44338
updated_at2023-10-17 08:28:13.600059
descriptionreactive json ...
homepage
repositoryhttps://github.com/rust-china/reactive_json
max_upload_size
id693170
size42,386
sanmu (wuyuedefeng)

documentation

README

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

cargo fmt