Create Patch

input

 

output

var patch = rfc6902.createPatch(input, output);
result:
{{createPatch.patch | json:'  '}}

Apply Patch

original

 

patch

var output = clone(original);
rfc6902.applyPatch(output, patch);
result:
{{applyPatch.output | json:'  '}}