You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 is that diff() generates a replacement with / as the path, which then can't be applied.
The text was updated successfully, but these errors were encountered:
The following will fail with an invalid pointer error:
The problem is that
diff()
generates a replacement with/
as the path, which then can't be applied.The text was updated successfully, but these errors were encountered: