Ejemplo n.º 1
0
 public string TestJSON()
 {
     Employee[] e = new Employee[2];
     e[0] = new Employee();
     e[0].Name = "Ajay Singh";
     e[0].Company = "Birlasoft Ltd.";
     e[0].Address = "LosAngeles California";
     e[0].Phone = "1204675";
     e[0].Country = "US";
     e[1] = new Employee();
     e[1].Name = "Ajay Singh";
     e[1].Company = "Birlasoft Ltd.";
     e[1].Address = "D-195 Sector Noida";
     e[1].Phone = "1204675";
     e[1].Country = "India";
     return new JavaScriptSerializer().Serialize(e);
 }
Ejemplo n.º 2
0
 public Employee[] TestXML()
 {
     Employee[] e = new Employee[2];
     e[0] = new Employee();
     e[0].Name = "Ajay Singh";
     e[0].Company = "Birlasoft Ltd.";
     e[0].Address = "LosAngeles California";
     e[0].Phone = "310-235-1535";
     e[0].Country = "US";
     e[1] = new Employee();
     e[1].Name = "Ajay Singh";
     e[1].Company = "Birlasoft Ltd.";
     e[1].Address = "D-195 Sector Noida";
     e[1].Phone = "120-467500";
     e[1].Country = "India";
     return e;
 }