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
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.
359
Microsoft.Extensions.DependencyModel
Abstractions for reading `.deps` files.
324
Hangfire.Core
An easy and reliable way to perform fire-and-forget, delayed and recurring, long-running, short-running, CPU or I/O intensive tasks inside ASP.NET applications. No Windows Service / Task Scheduler required. Even ASP.NET is not required. Backed by Redis, SQL Server, SQL Azure or MSMQ. This is a .NET alternative to Sidekiq, Resque and Celery. https://www.hangfire.io/
266
Hangfire.Core
Core components for Hangfire (background job system for ASP.NET applications).
139
Newtonsoft.Json.Bson
Json.NET BSON adds support for reading and writing BSON
136
FreeSql.Provider.PostgreSQL
FreeSql 数据库实现,基于 PostgreSQL 9.5
123
CH.Cache
Redis缓存
109
CH.Domain
Package Description
109
Hangfire.Core
An easy and reliable way to perform fire-and-forget, delayed and recurring, long-running, short-running, CPU or I/O intensive tasks in .NET applications. No Windows Service / Task Scheduler required. Backed by Redis, SQL Server, SQL Azure or MSMQ. This is a .NET alternative to Sidekiq, Resque and Celery. https://www.hangfire.io/
108
CH.DTO
Package Description
108
CH.Utility
公共方法
108
Jaeger.Core
Jaeger .NET Tracing
105
Com.Ctrip.Framework.Apollo
1.2.0: 重构日志功能,支持自定义日志输出 1.2.1: 修复HttpClient默认超时错误的问题 1.3.0: 优化初始化时不能连接上metaserver的等待时间 1.3.1: 修复QueryString连接错误 1.4.0: 修复issure #18、添加SourceLink、更新包 1.5.0: 使用.ConfigureAwait(false)替代AsyncHelper来解决同步调用异步方法出现的死锁问题 1.5.1: 添加MultiConfig,支持合并多个IConfig
102
CH.Log.Aliyun
Package Description
102
CH.AMQP
Package Description
101
CH.Net.Http
Package Description
101
App.Metrics.Health.Formatters.Json
App Metrics Formatters for health check results to JSON using Newtonsoft.Json.
100
CH.FreesqlContext
结合freesql框架对于pg的封装
97
Aliyun.Api.LogService
Aliyun LogService SDK for .NET Core.
94
CSRedisCore
CSRedis 是 redis.io 官方推荐库,支持 redis-trib集群、哨兵、私有分区与连接池管理技术,简易 RedisHelper 静态类。
93

.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 103 06/03/2024
13.0.2 428 06/03/2024
13.0.1 443 05/31/2024
12.0.1 439 05/31/2024
11.0.2 386 05/31/2024
11.0.1 106 06/23/2024
10.0.1 2 12/21/2024
9.0.1 209 06/03/2024