Adding support for newer versions of ActiveSupport due to ActiveSupport::JSON::ParseError being deprecated.