a2design-company/json-compare — pull request #7 by TigerTim (2013-10-17 07:18:50+00:00)
Title: check for nil before accesing the hash object

for example this little piece of code show the issue which my patch fix.

require 'json-compare'
arr1 = [{"a"=>"b"}]
arr2= []
JsonCompare.get_diff(arr1,arr2)