1 public class CardQueryResponseBO { 2 3 /** 4 * 返回码 5 */ 6 @JSONField(name = "code") 7 private String code; 8 9 /** 10 * 业务响应 11 */ 12 @JSONField(name = "rsp") 13 private CardQueryResponseRspBO rsp; 14 15 /** 16 * 业务返回信息 17 */ 18 @JSONField(name = "msg") 19 private String msg; 20 21 public String getMsg() { 22 return msg; 23 } 24 25 public void setMsg(String msg) { 26 this.msg = msg; 27 } 28 29 public String getCode() { 30 return code; 31 } 32 33 public void setCode(String code) { 34 this.code = code; 35 } 36 37 public CardQueryResponseRspBO getRsp() { 38 return rsp; 39 } 40 41 public void setRsp(CardQueryResponseRspBO rsp) { 42 this.rsp = rsp; 43 } 44 45 @Override 46 public String toString() { 47 return JSONObject.toJSONString(this); 48 } 49 50 }
使用
CardQueryResponseBO parseResultBean =JSON.parseObject(outParams, CardQueryResponseBO.class);