我有一个类似的JSON示例:
[
{
"Id": 549,
"Name": "ESPRESSO 1",
"Type": "COFFEE",
},
{
"Id": 550,
"TenHangHoa": "ESPRESSO 2",
"Type": "COFFEE",
},
{
"Id": 567,
"Name": "YOGUST 1",
"Type": "YOGUST SHAKE",
},
{
"Id": 568,
"Name": "YOGUST 2",
"Type": "YOGUST SHAKE",
},
]
我的POJO:
public class Drink{
private String Id;
private String Name;
private String Type;
get...set
}
IMAGE