json_diff_zerocopy

Function json_diff_zerocopy 

Source
pub fn json_diff_zerocopy<'a>(
    source: &Value,
    target: &'a Value,
) -> JsonPatchRef<'a>
Expand description

Generate a zero-copy JSON Patch that transforms source into target.

§Arguments

  • source - The original JSON document
  • target - The desired JSON document

§Returns

A JsonPatchRef containing operations to transform source into target. The operations borrow values from target where possible.