pub fn json_merge_patch(target: &mut Value, patch: Value)Expand description
Apply a JSON Merge Patch (RFC 7396) to target in-place.
Used by every *-server backend’s update_object implementation
to merge a sparse /set update patch into the stored serialized
object. Extracted from per-crate copies in bd:JMAP-sc1b.103 — keep
edits here so all five reference backends stay byte-identical.
Patches deeper than MAX_MERGE_PATCH_DEPTH are silently truncated
to bound stack use on adversarial input (bd:JMAP-sc1b.97). Below the
cap the behaviour is exactly RFC 7396.