JSON
不如不遇的我
大家好
展开
-
fastjson用法3
JSON类设置格式的方法 public class JSONDemo02 { public static void main(String[] args) { Student student = new Student(1, "张三", 15, new Date()); Course course=new Course(1,"语文"); Score score=new S转载 2015-07-23 17:24:52 · 1010 阅读 · 0 评论 -
fastjson用法2
JSONObject类的常用方法 public class JSONObjectDemo01 { public static void main(String[] args) { Course course1 = new Course(1, "语文"); Course course2 = new Course(2, "数学"); List list = new Arra转载 2015-07-23 15:29:07 · 349 阅读 · 0 评论 -
fastjson用法4
fastjson注解的简单用法 @JSONType(orders = { "id", "name", "password", "reg", "birthday", "age" }, alphabetic = false) public class Users extends Person { private Integer id; private String name; priv转载 2015-07-23 18:47:16 · 988 阅读 · 0 评论 -
fastjson用法5
fastjson处理泛型类型 public class JSONDemo03 { public static void main(String[] args) { // 泛型List转化 List list = new ArrayList<>(); list.add(new Course(1, "语文")); list.add(new Course(2, "数学"))转载 2015-07-23 22:18:27 · 575 阅读 · 0 评论