json_diff_rfc6902 icon indicating copy to clipboard operation
json_diff_rfc6902 copied to clipboard

bug in the "move" op on array

Open nebulaszlonemethi opened this issue 5 years ago • 1 comments

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" ] } ] } ]

nebulaszlonemethi avatar Nov 22 '18 11:11 nebulaszlonemethi

any update on this?

robertdumitrescu avatar Jan 12 '19 22:01 robertdumitrescu