@lucid-softworks/json-patch
v0.1.0
Published
Immutable RFC 6902 JSON Patch application.
Maintainers
Readme
@lucid-softworks/json-patch
Immutable RFC 6902 JSON Patch application supporting add, remove, replace, move, copy, and test.
const next = applyJsonPatch(document, [
{ op: "replace", path: "/user/name", value: "Grace" },
]);Operations stop at the first failure and throw JsonPatchError with the
operation index. Added and copied JSON values are defensively cloned.
