【发布时间】:2015-06-11 07:10:30
【问题描述】:
我有一个像这样的对象:
"choice": {
"000": {
"id": "001",
"label": "test",
"status": "0"
},
"001": {
"id": "001",
"label": "test",
"status": "0"
},
"002": {
"id": "001",
"label": "test",
"status": "0"
},
"003": {
"id": "001",
"label": "test",
"status": "0"
},
"004": {
"id": "001",
"label": "test",
"status": "0"
}
},
如何使用 Gson+Retrofit 解析该对象?或者生成一个POJO?有一种简单的方法吗?
非常感谢!
【问题讨论】:
标签: android dictionary gson retrofit pojo