jatch

Crates.iojatch
lib.rsjatch
version0.1.1
sourcesrc
created_at2021-10-29 10:44:25.935217
updated_at2021-10-29 11:39:25.340976
descriptionLibrary for performing JSON patching
homepagehttps://github.com/cameron1024/jatch
repositoryhttps://github.com/cameron1024/jatch
max_upload_size
id473903
size60,841
Cameron Mcloughlin (cameron1024)

documentation

README

Jatch

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"),
}]);
Commit count: 12

cargo fmt