Home | Blog| Screencasts
# Tuesday, October 02, 2007

Working on a project, I wanted to serialize the object as JSON:

using System.Web.Script.Serialization;

JavaScriptSerializer jss = new JavaScriptSerializer();
string serializedObject = jss.Serialize(object);

This is using the ASP.NET AJAX framework

I see that ScottGu has a post about building an extension method to perform this function .... very nice.

Tuesday, October 02, 2007 6:15:52 AM UTC  #    Comments [0] - Trackback

Categories
Statistics
Total Posts: 48
This Year: 33
This Month: 16
This Week: 2
Comments: 8