Newtonsoft.Json 13.0.3

Logo Json.NET

NuGet version (Newtonsoft.Json) Build status

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

Serialize JSON

Product product = new Product();
product.Name = "Apple";
product.Expiry = new DateTime(2008, 12, 28);
product.Sizes = new string[] { "Small" };

string json = JsonConvert.SerializeObject(product);
// {
//   "Name": "Apple",
//   "Expiry": "2008-12-28T00:00:00",
//   "Sizes": [
//     "Small"
//   ]
// }

Deserialize JSON

string json = @"{
  'Name': 'Bad Boys',
  'ReleaseDate': '1995-4-7T00:00:00',
  'Genres': [
    'Action',
    'Comedy'
  ]
}";

Movie m = JsonConvert.DeserializeObject<Movie>(json);

string name = m.Name;
// Bad Boys

LINQ to JSON

JArray array = new JArray();
array.Add("Manual text");
array.Add(new DateTime(2000, 5, 23));

JObject o = new JObject();
o["MyArray"] = array;

string json = o.ToString();
// {
//   "MyArray": [
//     "Manual text",
//     "2000-05-23T00:00:00"
//   ]
// }

Showing the top 20 packages that depend on Newtonsoft.Json.

Packages Downloads
IdentityModel
Helper library for claims-based identity, System.IdentityModel, JSON Web Tokens, OAuth 2.0 and OpenID Connect client
638
Microsoft.AspNet.WebApi.Client
This package adds support for formatting and content negotiation to System.Net.Http. It includes support for JSON, XML, and form URL encoded data.
623
Elasticsearch.Net.Aws
Enables request signing necessary for using the AWS Elasticsearch service.
614
NEST
Strongly typed interface to Elasticsearch. Fluent and classic object initializer mappings of requests and responses. Uses and exposes Elasticsearch.Net
581
Elastic.Apm
Elastic APM .NET Agent base package. This package provides core functionality for transmitting of all Elastic APM types and is a dependent package for all other Elastic APM package. Additionally this package contains the public Agent API that allows you to manually capture transactions and spans. Please install the platform specific package for the best experience. See: https://github.com/elastic/apm-agent-dotnet/tree/master/docs
560
Microsoft.NET.Test.Sdk
The MSbuild targets and properties for building .NET test projects.
435
Akka.Persistence
Persistence actor support for Akka.NET
234
Akka.Persistence
Persistence actor support for Akka.NET
226
Akka.Persistence
Persistence actor support for Akka.NET
200
Akka.Persistence
Persistence actor support for Akka.NET
199
Akka.Persistence
Persistence actor support for Akka.NET
195
Akka.Persistence
Persistence actor support for Akka.NET
194
Core.Logging
Application Logger utilizing Entity Framework and Enterprise Library
192
Akka.Persistence
Persistence actor support for Akka.NET
192
Akka.Persistence
Persistence actor support for Akka.NET
191

.NET Framework 2.0

  • No dependencies.

.NET Standard 2.0

  • No dependencies.

.NET 6.0

  • No dependencies.

.NET Standard 1.3

.NET Standard 1.0

.NET Framework 4.5

  • No dependencies.

.NET Framework 4.0

  • No dependencies.

.NET Framework 3.5

  • No dependencies.

Version Downloads Last updated
13.0.3 18 04/19/2023
13.0.2 5 03/20/2023
13.0.2-beta1 4 07/13/2022
13.0.1 34 07/08/2021
12.0.3 18 01/25/2021
12.0.2 41 06/13/2020
12.0.1 27 11/27/2019
11.0.2 591 11/21/2019
11.0.1 123 11/15/2019
10.0.3 193 11/14/2019
10.0.2 3 02/03/2022
10.0.1 35 12/06/2019
9.0.1 15 11/13/2019
8.0.3 3 01/21/2024
8.0.2 2 01/21/2024
8.0.1 2 01/21/2024
7.0.1 44 11/29/2019
6.0.8 6 01/19/2024
6.0.7 3 01/19/2024
6.0.6 3 01/21/2024
6.0.5 3 01/21/2024
6.0.4 3 10/31/2022
6.0.3 2 01/21/2024
6.0.2 3 01/21/2024
6.0.1 4 01/20/2024
5.0.8 2 01/19/2024
5.0.7 2 01/21/2024
5.0.6 3 01/19/2024
5.0.5 3 01/21/2024
5.0.4 34 11/29/2019
5.0.3 2 01/21/2024
5.0.2 5 01/19/2024
5.0.1 1 01/21/2024
4.5.11 4 01/20/2024
4.5.10 3 01/21/2024
4.5.9 4 01/19/2024
4.5.8 2 01/19/2024
4.5.7 5 01/21/2024
4.5.6 5 01/21/2024
4.5.5 2 01/21/2024
4.5.4 4 01/21/2024
4.5.3 2 01/21/2024
4.5.2 2 01/21/2024
4.5.1 4 01/21/2024
4.0.8 3 01/21/2024
4.0.7 5 01/20/2024
4.0.6 3 01/21/2024
4.0.5 3 01/19/2024
4.0.4 2 01/21/2024
4.0.3 2 01/21/2024
4.0.2 4 01/19/2024
4.0.1 3 01/21/2024
3.5.8 2 01/21/2024