Fixed #3580 - JSON definition won't load on Ruby 1.8