随笔分类 -  Json

摘要:Newtonsoft.Json NuGet直接引用 Newtonsoft.Json NuGet中间件引用:使用方法请参考其他文章 Microsoft.AspNetCore.Mvc.NewtonsoftJson 常用方法:反序列化/序列化 JsonConvert.DeserializeObject<T 阅读全文
posted @ 2021-05-24 23:22 gygtech 阅读(669) 评论(0) 推荐(0) 编辑
摘要:NuGet中添加最新稳定版: Newtonsoft.Json 新建类: using System; namespace SystemClass.JsonStudy { class Person { public int ID { get; set; } public string Name { ge 阅读全文
posted @ 2020-12-28 15:26 gygtech 阅读(1521) 评论(0) 推荐(0) 编辑
摘要:数据类型,从结构上看,所有的数据最终都可以分成三种类型: 第一种类型是scalar(标量),也就是一个单独的string(字符串)或数字(numbers),比如“北京”这个单独的词。 第二种类型是sequence(序列),也就是若干个相关的数据按照一定顺序并列在一起,又叫做array(数组)或Lis 阅读全文
posted @ 2018-06-21 09:29 gygtech 阅读(533) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示