json_diff_rfc6902
json_diff_rfc6902 copied to clipboard
bug in the "move" op on array
How to reproduce:
var obj = [ "thisisbad", { choices: [ { choices: [] } ] } ]; jdr.apply(obj, [{ op: "move", from: "/0", path: "/0/choices/0/choices/0" }]);
Result: Uncaught TypeError: Cannot read property '0' of undefined
Expected result:
[ { "choices": [ { "choices": [ "thisisbad" ] } ] } ]
any update on this?