code: function serialize(params) {
  		if (typeof require !== 'undefined' && typeof Titanium === 'undefined') {
  			return require('querystring').stringify(params)
  		}
  		var str = []
  		for (var key in params) {
  			if (params.hasOwnProperty(key)) {
  				var value = params[key]
  				var _key = encodeURIComponent(key)
  				if (value && value.constructor == Array) {
  					for (var i = 0; i < value.length; i++) {
  						str.push(_key+'='+encodeURIComponent(value[i]))
  					}
  				} else {
  					str.push(_key+'='+encodeURIComponent(value))
  				}
  			}
  		}
  		return str.join('&')
  	}
docs: ---