Closed yanyan300300 closed 8 years ago
➜ gojsondiff git:(master) ✗ cat a.json && cat b.json { "arr":[ "item0", "item1" ] } { "arr":[ "item0", "item2", "item3" ] }
➜ jd git:(master) ✗ go install && jd -f delta ../a.json ../b.json panic: runtime error: index out of range
Looks like typo here: https://github.com/yudai/gojsondiff/blob/master/gojsondiff.go#L364
Came across this issue. This patch fixes it. Thanks @yanyan300300. Can we pull this in @yudai?
Merged! thanks!
➜ gojsondiff git:(master) ✗ cat a.json && cat b.json { "arr":[ "item0", "item1" ] } { "arr":[ "item0", "item2", "item3" ] }
➜ jd git:(master) ✗ go install && jd -f delta ../a.json ../b.json panic: runtime error: index out of range
Looks like typo here: https://github.com/yudai/gojsondiff/blob/master/gojsondiff.go#L364