Add json gem for testing in JRuby in 1.8-mode