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); [...]

Copyright © 2007-2012 SharpDeveloper now AgileChai All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.0.2, from BuyNowShop.com.