# File lib/rack/utils/okjson.rb, line 492
  def numenc(x)
    if ((x.nan? || x.infinite?) rescue false)
      raise Error, "Numeric cannot be represented: #{x}"
    end
    "#{x}"
  end