Newtonsoft.Json 13.0.3
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 |
|---|---|
|
DotNetCore.CAP
Eventually consistency in distributed architectures.
|
243 |
|
CSRedisCore
CSRedis 是 redis.io 官方推荐库,支持 redis-trib集群、哨兵、私有分区与连接池管理技术,简易 RedisHelper 静态类。
|
38 |
|
Eglober.Ics.StaffManagement.Domain
Package Description
|
17 |
|
TimServerSDK
腾讯云 即时通信 IM 服务端API
|
16 |
|
Consul
Consul
|
16 |
|
Consul
Consul.NET is a .NET client library for the Consul HTTP API
|
16 |
|
Eglober.Abp.MqttServer
基本Abp的Mqtt服务端模块
|
16 |
|
Eglober.Abp.MqttServer
基本Abp的Mqtt服务端模块
|
15 |
|
Eglober.Ics.Roller.EntityFrameworkCore
摊铺碾压模块 - 格宝智慧工地
|
15 |
|
IdentityServer4
OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
|
14 |
|
Eglober.Abp.MqttEventBus
Package Description
|
14 |
|
Eglober.Abp.MqttServer
基本Abp的Mqtt服务端模块
|
14 |
|
Pomelo.JsonObject
MySQL provider for Entity Framework Core
|
14 |
|
Eglober.Ics.PrefabricationYard.Web
Package Description
|
13 |
|
Eglober.Ics.AsphaltMixingStation.Web.Shared
Package Description
|
13 |
|
Hangfire.Core
An easy and reliable way to perform fire-and-forget, delayed and recurring, long-running, short-running, CPU or I/O intensive tasks inside ASP.NET applications. No Windows Service / Task Scheduler required. Even ASP.NET is not required.
Backed by Redis, SQL Server, SQL Azure or MSMQ. This is a .NET alternative to Sidekiq, Resque and Celery.
https://www.hangfire.io/
|
12 |
|
Consul
Consul
|
12 |
|
Lion.Abp.Extension
Package Description
|
12 |
|
Eglober.Abp.MqttServer
基本Abp的Mqtt模块
|
12 |
This package has no dependencies.