public void ProcessRequest(HttpContext context) { Classes.Retriever ret = new Classes.Retriever(); JavaScriptSerializer ser = new JavaScriptSerializer(); var pp = context.Request["vv"]; Int32 kk = ret.getCountMacInfo(pp); // JavaScriptSerializer ser = new JavaScriptSerializer(); context.Response.ContentType = "application/json"; context.Response.Write(ser.Serialize(kk)); }