How to convert an Object List into JSON in ASP.NET
Posted
by Sayem Ahmed
on Stack Overflow
See other posts from Stack Overflow
or by Sayem Ahmed
Published on 2010-03-20T11:01:11Z
Indexed on
2010/03/20
11:11 UTC
Read the original article
Hit count: 314
I have a list of person objects which I want to send in response to a jquery' ajax request. I want to send the list into JSON format. The list is as follows -
List<Person> PersonList = new List<Person>();
Person Atiq = new Person("Atiq Hasan Mollah", 23, "Whassap Homie");
Person Sajib = new Person("Sajib Mamud", 24, "Chol kheye ashi");
How can I convert the "PersonList" list into JSON ?
© Stack Overflow or respective owner