Home | Blog | Screencasts | Projects
# 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 4:15:52 PM (E. Australia Standard Time, UTC+10:00)  #    Comments [0] - Trackback

Comments are closed.
Statistics
Total Posts: 119
This Year: 104
This Month: 11
This Week: 1
Comments: 15