Open andreas-gruenbacher opened 10 years ago
jsondiff.diff([null], [[1]]) should result in: [{"op":"add","path":"/0","value":[1]}]
But it actually results in: [{"op":"add","path":"/0/0","value":1},{"op":"replace","path":"/0","value":[1]}]
Note that I've stopped trying to make this project work for me after looking at the code a bit more closely; I've rewritten it instead.
jsondiff.diff([null], [[1]]) should result in: [{"op":"add","path":"/0","value":[1]}]
But it actually results in: [{"op":"add","path":"/0/0","value":1},{"op":"replace","path":"/0","value":[1]}]