json-patch
json-patch copied to clipboard
RFC 6902 (JSON Patch) / RFC 7396 (JSON Merge Patch) implementation for Rust
The types `Patch`, `PatchOperation`, and all of their used types are marked as `PartialEq` only. Although all used types (like `Value`) also do support `Eq`. I think it would be...
The following will fail with an invalid pointer error: ``` let mut a = serde_json::Value::from(0); let b = serde_json::Value::from(1); let patch = json_patch::diff(&a, &b); json_patch::patch(&mut a, &patch).unwrap(); ``` The problem...
Avoid cloning values from patch operations like "add"/"replace". Instead, accept patch operations as values and reuse their values.
Also alpha-sorted the derives.
Please see https://github.com/Byron/treediff-rs/issues/11. Apparently treediff-rs is in maintenance mode, quoting the maintainer: > It looks like the main consumer of this library is [json-patch](https://crates.io/crates/json-patch), and I suggest to open an...
Hi, json-path uses old `jsonptr = "0.4.7"` crate. The newest version is `0.6.0` and json-patch isn't compatible with it. Are there any chances to update it?
I would like to add a `MergeOperation` to the `PatchOperation` type, but I wanted to check here first to see if there was a good reason that hadn't already been...
Thanks for making this crate, it seems very useful :) It would be great if this crate could support generating a json patch by diffing Rust values (instances of structs/enums),...
I am opening this issue to explore the possibility of including the ability to use Query Expressions. Was this planned? What do you think? Link to the RFC: https://datatracker.ietf.org/doc/rfc9535/