我使用getCurrentResponse()。getBody()获取JSON如何将json转换为订阅列表:
List<Subscriptions>
杰森,我得到了:
{
"user": [
{
"channel_type": "tel",
"contact_info": "+37062333122",
"enabled": true
},
{
"channel_type": "mail",
"contact_info": mail@gmail.com,
"enabled": true
}
]
}
我的订阅课程以及我不包括的getter和setter方法,
public class Subscription {
private String contactInfo;
private String channelType;
private Boolean enabled;
}