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
Since the JavaScriptSerializer class is technically being deprecated, I believe DataContractJsonSerializer is the preferable way to go if you're using 3.0+.