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
363
AlibabaCloud.OpenApiUtil
Alibaba Cloud OpenApiUtil SDK for .NET
34
AlibabaCloud.OSSUtil
Alibaba Cloud OSS Util for .NET
366
AlibabaCloud.SDK.Common
Alibaba Cloud Common SDK for .NET
320
AlibabaCloud.TeaUtil
Alibaba Cloud TeaUtil SDK for .NET
34
AlibabaCloud.TeaXML
Alibaba Cloud TeaXML SDK for .NET
34
Aliyun.Credentials
Alibaba Cloud Credentials for .NET
34
aliyun-net-sdk-sts
Alibaba Cloud SDK for .NET
252
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.
3,525
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
34
TencentCloudSDK
Tencent Cloud API 3.0 SDK for .NET
3,865
TencentCloudSDK.Common
Tencent Cloud API 3.0 SDK for .NET
603
TencentCloudSDK.Sms
Tencent Cloud API 3.0 SDK for .NET
591
WingWell.Util
提供公共组件服务的类库
147
WingWell.Util.Extensions
为WingWell.Util基础类库提供扩展支持
1,736
WingWell.Util.Wow.Message
企业微信消息相关的基础服务类
1,709

.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 3,737 07/19/2024
13.0.2 2,399 07/19/2024
9.0.1 2,515 07/19/2024