How do I serialize and return a collection of objects?

Nov 3, 2008 at 8:53 PM
How do I serialize and return a collection of objects something similar to this example but using JSON.Net and JQuery and DotNet 2.0 No MVC framework:
Except I am not using MVC or 3.5 I am in DotNet 2.0.
http://www.bryanhales.com/archive/2008/08/16/easy-ajax-with-the-asp.net-mvc-framework-and-jquery.aspx
Nov 4, 2008 at 9:56 PM
Ok I guess there wasn't anything to it, just serialize it using JSON.Net
How do I iterate over my array in Javascript now to access properties of the JSON Data?
I am assuming that serializing a List<Person> creates an array to send back to the client data.
Any help is much appreciated!
Nov 7, 2008 at 12:18 AM
Doh, stupid me just use eval on the result and a regular for loop in javascript.
Problems solved.