【发布时间】:2019-06-12 04:25:20
【问题描述】:
我想用 Retrofit 制作 item POJO 类。我的 json 资源令人困惑,它有很多项目细节。我该怎么做?
{
"date" : "17-01-19",
"items": [
{
"id" : "123456789",
"name" : "USA",
"images": {
"small": "https://www.google.com",
"large": "https://www.google.com"
}
},
{
"id" : "123456789",
"name" : "Finland",
"images": {
"small": "https://www.google.com",
"large": "https://www.google.com"
}
},
{
"id" : "123456789",
"name" : "Germany",
"images": {
"small": "https://www.google.com",
"large": "https://www.google.com"
}
}
]
}
【问题讨论】:
-
这是一个非常简单的 JSON。
-
这就是例子。像这样的原始 json yts.am/api/v2/list_movies.json?sort_by=date_added
标签: android json rest retrofit retrofit2