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
779
AlibabaCloud.OpenApiUtil
Alibaba Cloud OpenApiUtil SDK for .NET
93
AlibabaCloud.OSSUtil
Alibaba Cloud OSS Util for .NET
785
AlibabaCloud.SDK.Common
Alibaba Cloud Common SDK for .NET
705
AlibabaCloud.TeaUtil
Alibaba Cloud TeaUtil SDK for .NET
93
AlibabaCloud.TeaXML
Alibaba Cloud TeaXML SDK for .NET
93
Aliyun.Credentials
Alibaba Cloud Credentials for .NET
93
aliyun-net-sdk-sts
Alibaba Cloud SDK for .NET
291
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.
4,438
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
93
TencentCloudSDK
Tencent Cloud API 3.0 SDK for .NET
4,896
TencentCloudSDK.Common
Tencent Cloud API 3.0 SDK for .NET
1,012
TencentCloudSDK.Sms
Tencent Cloud API 3.0 SDK for .NET
1,000
WingWell.Util
提供公共组件服务的类库
254
WingWell.Util.Extensions
为WingWell.Util基础类库提供扩展支持
2,293
WingWell.Util.Wow.Message
企业微信消息相关的基础服务类
2,266

.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 4,715 07/19/2024
13.0.2 3,030 07/19/2024
9.0.1 3,266 07/19/2024