normalize_param (Hash)

    # File lib/extlib/hash.rb, line 121
      def normalize_param(key, value)
        param = ''
        stack = []

        if value.is_a?(Array)
          param << value.map { |element| normalize_param("#{key}[]", element) }.join
        elsif value.is_a?(Hash)
          stack << [key,value]
        else
          param << "#{key}=#{value}&"
        end

        stack.each do |parent, hash|
          hash.each do |k, v|
            if v.is_a?(Hash)
              stack << ["#{parent}[#{k}]", v]
            else
              param << normalize_param("#{parent}[#{k}]", v)
            end
          end
        end

        param
      end