public string JsonValue; List<person> people = GetPeopleList(); JavaScriptSerializer json = new JavaScriptSerializer();
JsonValue = json.Serialize(people.Select(p => p.Name));
var names = from person in people select person; JsonValue = "{" + json.Serialize(names) + "}";
JsonValue = json.Serialize(people.SelectMany( p =>Name.AsEnumerable()));
var names = from person in people select person; JsonValue = json.Serialize(names);</person>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)