# File lib/rhc/vendor/okjson.rb, line 416
      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