// 校验json格式的data字符串:先转化为list
List list = (List) JSONArray.toList(JSONArray.fromObject(data), CspPreallocateVo.class);
CspPreallocateVo:
/**
*
* CspPreallocateVo:
* 用于将json字符串转为该对象
* @author wh
*
*/
public class CspPreallocateVo {
public String cardNo;
public String preAmount;
public String getCardNo() {
return cardNo;
}
public void setCardNo(String cardNo) {
this.cardNo = cardNo;
}
public String getPreAmount() {
return preAmount;
}
public void setPreAmount(String preAmount) {
this.preAmount = preAmount;
}
}