void SendClrObject(HttpContext context, object obj) { var ser = new JsClrSerializer { Writer = context.Response.Output, }; var s = ser.Serialize(obj); context.Response.Write("return "); context.Response.Write(s); context.Response.Write(";"); }