Only depend on json gem on 1.8