The Json.NET library makes working with JavaScript and JSON formatted data in .NET simple. Quickly read and write JSON using the JsonReader and JsonWriter or serialize your .NET objects with a single method call using the Jsonserializer. 

Json.NET CodePlex Project

Json.NET Download

Features

  • LINQ to JSON
  • Lightning fast JsonReader and JsonWriter
  • The Jsonserializer for quickly converTing your .NET objects to JSON and BACk again
  • Json.NET can optionally produce well formatted,indented JSON for debugging or display
  • Attributes like JsonIgnore and JsonProperty can be added to a class to customize how a class is serialized
  • Ability to convert JSON to and from XML
  • Supports multiple platforms: .NET,Silverlight and the Compact Framework

Example

@H_772_74@
Product product = new Product();
product.Name = "Apple";
product.Expiry = new datetiR_859_11845@e(2008,12,28);
product.Price = 3.99M;
product.Sizes = new String[] { "small","Medium","Large" };
 
String json = JsonConvert.serializeObject(product);
//{
//  "Name": "Apple",
//  "Expiry": new Date(1230422400000),
//  "Price": 3.99,
//  "Sizes": [
//    "small",
//    "Medium",
//    "Large"
//  ]
//}
 
Product deserializedProduct = JsonConvert.DeserializeObject<Product>(json);