    # File lib/rack/utils/okjson.rb, line 72
      def valenc(x)
        case x
        when Hash    then objenc(x)
        when Array   then arrenc(x)
        when String  then strenc(x)
        when Numeric then numenc(x)
        when true    then "true"
        when false   then "false"
        when nil     then "null"
        else
          raise Error, "cannot encode #{x.class}: #{x.inspect}"
        end
      end