Home: http://json.codeplex.com/
Nuget mounting: http://nuget.org/packages/Newtonsoft.Json
PM> install-package newtonsoft. JSON
Class to JSON String Conversion
Public class product {public string name {Get; set;} public datetime expiry {Get; set;} public decimal price {Get; set;} Public String [] sizes {Get; set ;}} product Product = new product (); product. name = "apple"; product. expiry = new datetime (2008, 12, 28); product. price = 3.99 m; product. sizes = new string [] {"small", "medium", "large"}; string output = jsonconvert. serializeobject (product); // convert the class to a JSON string // {// "name": "apple", // "Expiry": "\/date (1230375600000 + 1300) \/", //" price ": 3.99, //" sizes ": [//" small ", //" medium ", // "large" //] //} product deserializedproduct = jsonconvert. deserializeobject <product> (output); // converts a JSON string to a class