public string getSwitch(int id) { ShiftsEmployee se = new ShiftsEmployee(); string S = se.getSwitch(id); JavaScriptSerializer js = new JavaScriptSerializer(); string jsonString = js.Serialize(S); return(jsonString); }