json_plus

Crates.iojson_plus
lib.rsjson_plus
version0.1.0
sourcesrc
created_at2021-11-14 23:39:52.701453
updated_at2021-11-14 23:39:52.701453
descriptionJSON helper functions beyond Serialization & Deserialization
homepage
repositoryhttps://github.com/rust-playground/json-plus
max_upload_size
id481910
size47,751
Dean Karn (deankarn)

documentation

README

json_plus   Latest Version

This crate provides JSON helper functions beyond Serialization & Deserialization such as diff, merge, ...


[dependencies]
json_plus = "0.1"

Example

use json_plus::diff;
use serde_json::json;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let old = json!({"key":"old value", "arr":[]});
    let new = json!({"key":"new value", "arr":[]});

    let diffed = diff(&old, &new).unwrap();
    println!("{}", diffed.to_string());
    Ok(())
}

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Proteus by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Commit count: 1

cargo fmt