public class RepayStatVO {
public double overdueInterest;
public double overdueFee;
public double principalBalance;
public int dueCount;
public double interestBalance;
public int notDueCount;
public double feeBalance;
public int overdueCount;
@JSONField(name = "details")
public List<RepayDocInfoVO> repayDocInfoVOs;
}
当进行解析时,无法解析出列表,如果不要@JSONField,并把列表名变成details,就能解析出列表,这个为什么呢?
我理解@JSONField的作用就是对应Json字符串中的key,不知道对不对
2条答案
按热度按时间slhcrj9b1#
应该是可以的哈,什么版本?
slmsl1lt2#
com.alibaba.fastjson:fastjson-1.1.27-android:1.1.27