Building a ToJSON() Extension Method using .NET 3.5
Here…Serialize a List<Person> into a string of JSON format
Here is the Extension method to provide the JSON serialization on the String Type.
Note: In addition to the JavaScriptSerializer class, .NET 3.5 also now includes a new System.Runtime.Serialization.DataContractJsonSerializer class that you can use for JSON serialization/deserialization
Via Tip/Trick: Building a ToJSON() Extension Method using .NET 3.5 – ScottGu’s Blog
No comments yet.
