Revert "Drop Ruby 1.8 support"

This reverts commit e70c6f68ddf7ec50f43fd04561bb0e99a4fde813.
json is not necessary on Ruby versions that include it in the stdlib