Json
小菜根win
技术爱好者
展开
-
C#中Json序列化、反序列化
一、C#将对象序列号为Json字符串public string GetJsonString() { List products = new List(){ new Product(){Name="苹果",Price=5.5}, new Product(){Name="橘子",Price=2.5}, new Product(){Name="干柿转载 2017-01-07 17:43:22 · 1522 阅读 · 0 评论 -
C#使用Newtonsoft序列化、反序列化
public class Product { public string Name { get; set; } public double Price { get; set; } public override string ToString() { return "Name: " + Name +原创 2017-01-07 18:15:37 · 1000 阅读 · 0 评论 -
Gson在java对象和json字符串之间转换
public class Person { private String username; private String password; private double money; private Book book; public Person() {} public Person(String username, S转载 2017-01-07 23:56:18 · 547 阅读 · 0 评论