【发布时间】:2015-05-04 13:05:09
【问题描述】:
我有以下架构:
public class Student {
String name;
List<Integer> sequence;
}
我需要 Student 对象的 Json
{
name : "Bruce"
sequence : {
index_0 : 5
index_1 : 2
index_2 : 7
index_3 : 8
}
}
The documentation 没有明确说明如何为集合编写序列化程序。
【问题讨论】:
标签: java json serialization collections gson