I\'ve found ScriptingJsonSerializationSection but I\'m not sure how to use it. I could write a function to convert the object to a JSON string manually, but since .Net can do it
Try
System.Web.Script.Serialization.JavaScriptSerializer
or Check out JSON.org there is a whole list of libraries written to do exactly what you want.