Skip to content
rust-playgroundPublic

About

JSON helper functions beyond Serialization & Deserialization such as `diff`, `merge`, `...`

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

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.

About

JSON helper functions beyond Serialization & Deserialization such as `diff`, `merge`, `...`

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages