json_diff_rfc6902
json_diff_rfc6902 copied to clipboard
This is the framework to handle JSON diff and patch based on RFC6902
By my opinion, this lib could easily be the most complete json diff/patch library, if the published algorithm is correct this lib is based on.
How to reproduce: `var obj = [ "thisisbad", { choices: [ { choices: [] } ] } ]; jdr.apply(obj, [{ op: "move", from: "/0", path: "/0/choices/0/choices/0" }]); ` Result: _Uncaught...
…ckage-lock.json) - removed packaging itself as an external node module - fixed async warning dropping by fs - fixed issue #3 (diff calculated wrong) - modified expected test results where...
In the simple example, a weird "copy" patch is calculated as a diff what is wrong. Check it on [codepen](https://codepen.io/nlac/pen/GOWNVx/) or here: ```javascript var a = { choices: [ {id:...
Hi, first let me thank you for this one, it generates the most clever diffs among all the similar libs i checked. As an extra, it is able to apply...