json_plus 0.1.0

JSON helper functions beyond Serialization & Deserialization
Documentation
1
2
3
4
5
6
7
8
9
10
11
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(())
}