# ![Logo](https://raw.githubusercontent.com/JamesNK/Newtonsoft.Json/master/Doc/icons/logo.jpg) Json.NET
[![NuGet version (Newtonsoft.Json)](https://img.shields.io/nuget/v/Newtonsoft.Json.svg?style=flat-square)](https://www.nuget.org/packages/Newtonsoft.Json/)
[![Build status](https://dev.azure.com/jamesnk/Public/_apis/build/status/JamesNK.Newtonsoft.Json?branchName=master)](https://dev.azure.com/jamesnk/Public/_build/latest?definitionId=8)
Json.NET is a popular high-performance JSON framework for .NET
## Serialize JSON
```csharp
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
```csharp
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
```csharp
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
- [Homepage](https://www.newtonsoft.com/json)
- [Documentation](https://www.newtonsoft.com/json/help)
- [NuGet Package](https://www.nuget.org/packages/Newtonsoft.Json)
- [Release Notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Contributing Guidelines](https://github.com/JamesNK/Newtonsoft.Json/blob/master/CONTRIBUTING.md)
- [License](https://github.com/JamesNK/Newtonsoft.Json/blob/master/LICENSE.md)
- [Stack Overflow](https://stackoverflow.com/questions/tagged/json.net)
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
NativeDemo.rar (60个子文件)
NativeDemo
NativeDemo.sln 1KB
.vs
NativeDemo
v16
.suo 48KB
NativeDemo
packages.config 227B
App.config 189B
NativeDemo.csproj 4KB
obj
Debug
NativeDemo.frmMain.resources 180B
DesignTimeResolveAssemblyReferencesInput.cache 7KB
NativeDemo.csproj.FileListAbsolute.txt 1KB
NativeDemo.Properties.Resources.resources 180B
.NETFramework,Version=v4.6.1.AssemblyAttributes.cs 214B
TempPE
NativeDemo.csproj.CopyComplete 0B
NativeDemo.pdb 44KB
NativeDemo.exe 15KB
NativeDemo.csproj.CoreCompileInputs.cache 42B
NativeDemo.csproj.GenerateResource.cache 1014B
DesignTimeResolveAssemblyReferences.cache 277B
frmMain.cs 6KB
frmMain.Designer.cs 3KB
bin
Release
Debug
BouncyCastle.Crypto.xml 1.72MB
NativeDemo.exe.config 189B
Newtonsoft.Json.xml 697KB
NativeDemo.pdb 44KB
Newtonsoft.Json.dll 695KB
BouncyCastle.Crypto.dll 3.16MB
NativeDemo.exe 15KB
Properties
Resources.Designer.cs 3KB
Settings.Designer.cs 1KB
Settings.settings 249B
AssemblyInfo.cs 1KB
Resources.resx 5KB
Program.cs 524B
frmMain.resx 6KB
HttpUtilNative.cs 2KB
packages
Portable.BouncyCastle.1.9.0
lib
net40
BouncyCastle.Crypto.xml 1.72MB
BouncyCastle.Crypto.dll 3.16MB
netstandard2.0
BouncyCastle.Crypto.xml 1.72MB
BouncyCastle.Crypto.dll 3.16MB
Portable.BouncyCastle.1.9.0.nupkg 3.42MB
.signature.p7s 18KB
Newtonsoft.Json.13.0.3
lib
net45
Newtonsoft.Json.xml 697KB
Newtonsoft.Json.dll 695KB
netstandard1.0
Newtonsoft.Json.xml 676KB
Newtonsoft.Json.dll 665KB
net40
Newtonsoft.Json.xml 554KB
Newtonsoft.Json.dll 571KB
netstandard1.3
Newtonsoft.Json.xml 684KB
Newtonsoft.Json.dll 683KB
net35
Newtonsoft.Json.xml 542KB
Newtonsoft.Json.dll 504KB
netstandard2.0
Newtonsoft.Json.xml 696KB
Newtonsoft.Json.dll 689KB
net20
Newtonsoft.Json.xml 596KB
Newtonsoft.Json.dll 567KB
net6.0
Newtonsoft.Json.xml 694KB
Newtonsoft.Json.dll 696KB
LICENSE.md 1KB
Newtonsoft.Json.13.0.3.nupkg 2.33MB
packageIcon.png 9KB
README.md 2KB
.signature.p7s 24KB
共 60 条
- 1
资源评论
- gdszxxl2023-09-23不知道为啥400错误 也没错误码提示
qq_20104505
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功