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
AlibabaCloud.EndpointUtil
Alibaba Cloud EndpointUtil for .NET
1,901
AlibabaCloud.OpenApiUtil
Alibaba Cloud OpenApiUtil SDK for .NET
129
AlibabaCloud.OSSUtil
Alibaba Cloud OSS Util for .NET
1,904
AlibabaCloud.SDK.Common
Alibaba Cloud Common SDK for .NET
1,748
AlibabaCloud.TeaUtil
Alibaba Cloud TeaUtil SDK for .NET
129
AlibabaCloud.TeaXML
Alibaba Cloud TeaXML SDK for .NET
129
Aliyun.Credentials
Alibaba Cloud Credentials for .NET
129
aliyun-net-sdk-sts
Alibaba Cloud SDK for .NET
348
Microsoft.AspNetCore.Mvc.NewtonsoftJson
ASP.NET Core MVC features that use Newtonsoft.Json. Includes input and output formatters for JSON and JSON PATCH. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/b225d30209cf027c80b741d04efe1c54f2431b3c
0
Microsoft.Extensions.DependencyModel
Abstractions for reading `.deps` files.
6,543
NJsonSchema
JSON Schema reader, generator and validator for .NET
2
NJsonSchema.NewtonsoftJson
JSON Schema reader, generator and validator for .NET
2
Tea
Alibaba Cloud Tea Core SDK for .NET
129
TencentCloudSDK
Tencent Cloud API 3.0 SDK for .NET
7,016
TencentCloudSDK.Common
Tencent Cloud API 3.0 SDK for .NET
1,520
TencentCloudSDK.Sms
Tencent Cloud API 3.0 SDK for .NET
1,508
WingWell.Util
提供公共组件服务的类库
730
WingWell.Util
提供类型安全转换、统一异常体系、HTTP 请求、加密、JSON、文件操作、ID 生成等开箱即用的 .NET 通用工具类库
5
WingWell.Util.Extensions
为WingWell.Util基础类库提供扩展支持
2,840
WingWell.Util.Wow.Message
企业微信消息相关的基础服务类
2,811

.NET Framework 2.0

  • No dependencies.

.NET Framework 3.5

  • No dependencies.

.NET Framework 4.0

  • No dependencies.

.NET Framework 4.5

  • No dependencies.

.NET Standard 1.0

.NET Standard 1.3

.NET 6.0

  • No dependencies.

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
13.0.3 6,815 07/19/2024
13.0.2 3,852 07/19/2024
9.0.1 4,759 07/19/2024