Json.NET (also known as Newtonsoft.Json) is a popular high-performance JSON framework for .NET.

Json.NET is a popular high-performance JSON framework for .NET.

The official website with documentation and examples.

Features

  • Flexible JSON serializer for converting between .NET objects and JSON
  • LINQ to JSON for manually reading and writing JSON
  • High performance, faster than .NET's built-in JSON serializers
  • Write indented, easy to read JSON
  • Convert JSON to and from XML
  • Supports .NET 2, .NET 3.5, .NET 4, .NET 4.5, Silverlight, Windows Phone, Windows 8 Store, and .NET Core with netstandard1.0.

The JSON serializer is a good choice when the JSON you are reading or writing maps closely to a .NET class.

LINQ to JSON is good for situations where you are only interested in getting values from JSON, you don't have a class to serialize or deserialize to, or the JSON is radically different from your class and you need to manually read and write from your objects.

The source code is hosted on GitHub. You can install Json.NET from NuGet:

PM> Install-Package Newtonsoft.Json