Beispiel #1
0
 public void ProcessRequest(HttpContext context)
 {
     context.Response.ContentType = "text/json";
     GObject obj = new GObject();
     obj.Add("name", "任肖").Add("age", "19").Add("desc", "你好爱上飞Y&*^*(67Y*(OIH*^_(*\"\n\tdd3").Add("sex", true).Add("day", DateTime.Now); ;
     GObjectList list = new GObjectList();
     for (int i = 0; i < 10; i++)
     {
         GObject obj1 = new GObject();
         obj1["name"] = "名字1";
         obj1["sex"] = false;
         obj1["day"] = DateTime.Now;
         list.Add(obj1);
     }
     obj["list"] = list;
     context.Response.Write(obj.GetJSON());
 }