Ruby version required, 1.9 has json but http seems not doing right thing. Tested for 2.0.0p481 and 2.1.2 on mac