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
2,532
AlibabaCloud.OpenApiUtil
Alibaba Cloud OpenApiUtil SDK for .NET
158
AlibabaCloud.OSSUtil
Alibaba Cloud OSS Util for .NET
2,549
AlibabaCloud.SDK.Common
Alibaba Cloud Common SDK for .NET
2,378
AlibabaCloud.TeaUtil
Alibaba Cloud TeaUtil SDK for .NET
155
AlibabaCloud.TeaXML
Alibaba Cloud TeaXML SDK for .NET
197
Aliyun.Credentials
Alibaba Cloud Credentials for .NET
155
aliyun-net-sdk-sts
Alibaba Cloud SDK for .NET
352
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.
7,359
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
169
TencentCloudSDK
Tencent Cloud API 3.0 SDK for .NET
7,908
TencentCloudSDK.Common
Tencent Cloud API 3.0 SDK for .NET
1,552
TencentCloudSDK.Sms
Tencent Cloud API 3.0 SDK for .NET
1,540
WingWell.Util
提供公共组件服务的类库
1,138
WingWell.Util
提供类型安全转换、统一异常体系、HTTP 请求、加密、JSON、文件操作、ID 生成等开箱即用的 .NET 通用工具类库
6
WingWell.Util.Extensions
为WingWell.Util基础类库提供扩展支持
2,881
WingWell.Util.Wow.Message
企业微信消息相关的基础服务类
2,851

.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 7,206 07/19/2024
13.0.2 4,021 07/19/2024
9.0.1 5,123 07/19/2024