Skip to main content

apply_json_patch

Function apply_json_patch 

Source
pub fn apply_json_patch(
    target: &mut Value,
    patch: &Value,
) -> Result<(), PodError>
Expand description

Apply a JSON Patch document (RFC 6902) to a serde_json::Value in place. Returns Err(PodError::PreconditionFailed) when a test operation fails, Err(PodError::Unsupported) for malformed patches.