【发布时间】:2020-04-10 09:10:03
【问题描述】:
在做了一些教程后,我尝试使用特定的 API,但我的 POJO 总是得到空对象,解析“结果”键中的数据的正确方法是什么?
"success": true,
"metadata": {
"sort": "POPULARITY",
"total_products": 20,
"title": "Phones & Tablets",
"results": [
{
"sku": "1",
"name": "Samsung Galaxy S9",
"brand": "Samsung",
"max_saving_percentage": 30,
"price": 53996,
"special_price": 37990,
"image": "https://cdn2.gsmarena.com/vv/bigpic/samsung-galaxy-s9-.jpg",
"rating_average": 5
},`
``
【问题讨论】:
标签: java android retrofit jsonschema2pojo