Newtonsoft.Json 13.0.4-beta1
Json.NET
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"
// ]
// }
Links
Showing the top 20 packages that depend on Newtonsoft.Json.
| Packages | Downloads |
|---|---|
|
log4stash
Package Description
|
380 |
|
VisionFramework.Extend
Package Description
|
260 |
|
VisionFramework.Log
VisionFramework日志组件,提供统一的日志管理和log4net集成功能
|
253 |
|
VisionFramework.Log
Package Description
|
202 |
|
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/2f1db20456007c9515068a35a65afdf99af70bc6
|
67 |
|
Microsoft.AspNetCore.JsonPatch
ASP.NET Core support for JSON PATCH.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/2f1db20456007c9515068a35a65afdf99af70bc6
|
66 |
|
Newtonsoft.Json.Bson
Json.NET BSON adds support for reading and writing BSON
|
62 |
|
NETCore.Encrypt
NETCore encrypt and decrpty tool,Include AES,RSA,MD5,SAH1,SAH256,SHA384,SHA512
|
62 |
|
CSRedisCore
CSRedis 是 redis.io 官方推荐库,支持 redis-trib集群、哨兵、私有分区与连接池管理技术,简易 RedisHelper 静态类。
|
59 |
|
MiniProfiler.Shared
You shouldn't reference this - MiniProfiler's shared library for all frameworks
|
55 |
|
Google.Apis.Core
The Google APIs Core Library contains the Google APIs HTTP layer, JSON support, Data-store, logging and so on.
|
32 |
|
Google.Api.Gax
Support classes for Google API client libraries
|
29 |
|
Google.Apis.Core
The Google APIs Core Library contains the Google APIs HTTP layer, JSON support, Data-store, logging and so on.
|
28 |
|
TensorFlow.NET
Google's TensorFlow full binding in .NET Standard.
Building, training and infering deep learning models.
https://tensorflownet.readthedocs.io
|
24 |
|
Microsoft.AspNetCore.JsonPatch
ASP.NET Core support for JSON PATCH.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/954f61dd38b33caa2b736c73530bd5a294174437
|
24 |
|
Elsa.Abstractions
Elsa is a set of workflow libraries and tools that enable lean and mean workflowing capabilities in any .NET Core application.
This package provides abstractions and models that are used by Elsa.Core and other related packages. You don't need to reference this package separately if you reference any other Elsa package.
|
24 |
|
TencentCloudSDK.Common
Tencent Cloud API 3.0 SDK for .NET
|
23 |
|
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/954f61dd38b33caa2b736c73530bd5a294174437
|
23 |
|
ThinkingdataAnalytics
Package Description
|
22 |
|
TensorFlow.NET
Google's TensorFlow full binding in .NET Standard.
Building, training and infering deep learning models.
https://tensorflownet.readthedocs.io
|
22 |
.NET Framework 2.0
- No dependencies.
.NET Standard 2.0
- No dependencies.
.NET 6.0
- No dependencies.
.NET Standard 1.3
- System.Xml.XmlDocument (>= 4.3.0)
- System.Runtime.Serialization.Formatters (>= 4.3.0)
- System.ComponentModel.TypeConverter (>= 4.3.0)
- NETStandard.Library (>= 1.6.1)
- Microsoft.CSharp (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
.NET Standard 1.0
- System.ComponentModel.TypeConverter (>= 4.3.0)
- NETStandard.Library (>= 1.6.1)
- Microsoft.CSharp (>= 4.3.0)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
.NET Framework 4.5
- No dependencies.
.NET Framework 4.0
- No dependencies.
.NET Framework 3.5
- No dependencies.