use JSON gem for 1.8