code: function(smd, method, data) {
            return {
               data: lang.JSON.stringify({
         	      "id": rpc.Service._requestId++,
         	      "method": method.name,
         	      "params": data
         	   })
            };   
         }
docs: serialize