Add json gem for ruby 1.8, 1.8 does not have native json.

This failed in my local 1.8.7 :crying_cat_face: