| Crates.io | jatch |
| lib.rs | jatch |
| version | 0.1.1 |
| created_at | 2021-10-29 10:44:25.935217+00 |
| updated_at | 2021-10-29 11:39:25.340976+00 |
| description | Library for performing JSON patching |
| homepage | https://github.com/cameron1024/jatch |
| repository | https://github.com/cameron1024/jatch |
| max_upload_size | |
| id | 473903 |
| size | 60,841 |
A Json Patching library in Rust, as per RFC6902
Easily find the difference between 2 JSONs:
let before = json!({"a": 123});
let after = json!({"a": 123, "b": "hello"});
let patches = diff(before, after);
assert_eq!(patches, vec![Patch::Add {
value: json!("hello"),
path: Path::new("/b"),
}]);