Add json dependency

or we'll encounter an error when ruby version is 1.8