@
xarrow var mainJson = new Dictionary<string, object>();
mainJson.Add("name","lisi");
var mainChilds = new List<Dictionary<string, object>>();
var sub1 = new Dictionary<string, object>();
sub1.Add("name","mail");
var sub1Childs = new List<Dictionary<string, object>>();
sub1Childs.Add(new Dictionary<string, object> { { "name", "lisi@gmail.com" } });
sub1.Add("children",sub1Childs);
var sub2 = new Dictionary<string, object>();
sub2.Add("name", "password");
var sub2Childs = new List<Dictionary<string, object>>();
sub2Childs.Add(new Dictionary<string, object> { { "name", "lisi" } });
sub2.Add("children",sub2Childs);
mainChilds.Add(sub1);
mainChilds.Add(sub2);
mainJson.Add("children",mainChilds);
Console.WriteLine(JsonConvert.SerializeObject(mainJson));
Console.ReadLine();