require rubygems before json