3
Serialize and Deserialize to JSON from ASP.NET
Posted by Sameer on April 23, 2010 in .NET articles | ∞
Its very easy to serialize an object to .NET Simply create some object, normally a custom class with some attributes. Normally you have a list of these and you want to serialize to JSON to use it from client side code. If you do the following var s = new System.Web.Script.Serialization.JavaScriptSerializer(); string resultJs = s.Serialize(result); [...]