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.