<%
Public Class OutputJson
{
public List<Entity> Android { get; set; }
}
Public Class Entity
{
Public string Name { get; set; }
Public string Version { get; set; }
}
outputJson = new OutputJson{
Android = new List<Entity>
{
new Entity { Name = "aaa", Version = "123"},
new Entity { Name = "bb", Version = "34"},
new Entity { Name = "cc", Version = "56"},
}
var output = new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(outputJson);
List<Entity> entity = new List<Entity>();
JavaScriptSerializer serializer = new JavaScriptSerializer();