| Crates.io | json_plus |
| lib.rs | json_plus |
| version | 0.1.0 |
| created_at | 2021-11-14 23:39:52.701453+00 |
| updated_at | 2021-11-14 23:39:52.701453+00 |
| description | JSON helper functions beyond Serialization & Deserialization |
| homepage | |
| repository | https://github.com/rust-playground/json-plus |
| max_upload_size | |
| id | 481910 |
| size | 47,751 |
This crate provides JSON helper functions beyond Serialization & Deserialization such as diff, merge, ...
[dependencies]
json_plus = "0.1"
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(())
}