adding json gem if ruby version is smaller than 1.9