# ![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)
没有合适的资源?快使用搜索试试~ 我知道了~
国家医保移动支付 SM2签名 SM4加密demo源码
共58个文件
xml:12个
dll:12个
cs:11个
5星 · 超过95%的资源 需积分: 0 212 下载量 189 浏览量
2023-04-05
19:34:34
上传
评论 5
收藏 13.6MB ZIP 举报
温馨提示
国家医保移动支付 SM2签名 SM4加密demo源码
资源推荐
资源详情
资源评论
收起资源包目录
Demo.zip (58个子文件)
.vs
Demo
v17
.suo 40KB
Demo.sln 1KB
Demo
packages.config 225B
App.config 187B
obj
Debug
Demo.csproj.AssemblyReference.cache 6KB
Demo.csproj.CopyComplete 0B
DesignTimeResolveAssemblyReferencesInput.cache 7KB
Demo.exe 26KB
.NETFramework,Version=v4.5.AssemblyAttributes.cs 210B
Demo.csproj.CoreCompileInputs.cache 42B
TempPE
Demo.pdb 84KB
Demo.csproj.FileListAbsolute.txt 645B
_IsIncrementalBuild 32B
SM2SM4Util
Sm4Context.cs 539B
SM2Util.cs 3KB
SM2Param.cs 2KB
Sm4Util.cs 5KB
SM4.cs 14KB
Lib
EasyGmUtils.cs 16KB
SignUtil.cs 11KB
SMUtil.cs 3KB
Demo.csproj 3KB
bin
Debug
BouncyCastle.Crypto.xml 1.72MB
Demo.exe 26KB
Newtonsoft.Json.xml 697KB
Demo.pdb 84KB
Demo.exe.config 187B
Newtonsoft.Json.dll 695KB
BouncyCastle.Crypto.dll 3.16MB
Properties
AssemblyInfo.cs 1KB
Program.cs 3KB
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
共 58 条
- 1
skrCode.
- 粉丝: 13
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页