talira

Json.NET

Popular high-performance JSON framework for .NET (Newtonsoft.Json)

open sourceMITfree

Json.NET, the Newtonsoft.Json package, is a widely used JSON library for .NET. It serializes and deserializes any .NET object to and from JSON with a configurable serializer (converters, naming, null and default handling, reference loops, dates), and its LINQ to JSON API (JObject, JArray, JValue) creates, parses, queries and modifies JSON without classes, with JSON Path queries and conversion between JSON and XML. It's MIT licensed and runs on .NET, .NET Framework and .NET Standard. Newer .NET also ships System.Text.Json built in. Its author also sells Json.NET Schema, a separate library for JSON Schema validation.

Problems it solves

  • serialize and deserialize JSON in C#
  • parse JSON without defining classes in .NET
  • query JSON with JSON Path in C#
  • convert between JSON and XML in .NET

Features

  • JSON serializer for any .NET object
  • LINQ to JSON: JObject, JArray, JValue
  • JSON Path queries
  • JSON and XML conversion
  • custom converters and contract resolvers