code: function(smd, method, data) {
              var eURI = encodeURIComponent;
              var params = [];
              for(var name in data){
           	   if(data.hasOwnProperty(name)){
              	   var value = data[name];
              		if(lang.isArray(value)){
              			for(var i=0; i < value.length; i++){
              				params.push(eURI(name)+"="+eURI(value[i]));
              			}
              		}else{
              			params.push(eURI(name)+"="+eURI(value));
              		}
              	}
              }
              return {
     				data: params.join("&")
              };   
           }
docs: Serialize data into URI encoded parameters