Response.ContentType = "application/json";
System.Web.Script.Serialization.JavaScriptSerializer ser = new System.Web.Script.Serialization.JavaScriptSerializer();
ArrayList OrdersList = new ArrayList();
string json=ser.Serialize(new
{
code = 200,
msg = "success",
data = new
{
OrdersList = OrdersList
}
});
System.Web.Script.Serialization.JavaScriptSerializer ser = new System.Web.Script.Serialization.JavaScriptSerializer();
ArrayList OrdersList = new ArrayList();
string json=ser.Serialize(new
{
code = 200,
msg = "success",
data = new
{
OrdersList = OrdersList
}
});