{
"rowcount": 1,
"total": 1,
"errorMsg": "",
"success": true,
"rows": [
{
"Gender": "男",
"Age": 38,
"Height": 178,
"Weight": 67,
"Phone": "",
"Address": "",
"BloodPressureNo": "0008136784",
"BloodGlucoseNo": "100810005",
"Re": "",
"IsVIP": true,
"SigningTime": null,
"DueDate": null,
"HeadPortrait": null
}
]
}
各位大神么 后台返回给我的数据中存在 null 和” “ 两种形式 我该怎样解析啊 我用的okhttp请求
"rowcount": 1,
"total": 1,
"errorMsg": "",
"success": true,
"rows": [
{
"Gender": "男",
"Age": 38,
"Height": 178,
"Weight": 67,
"Phone": "",
"Address": "",
"BloodPressureNo": "0008136784",
"BloodGlucoseNo": "100810005",
"Re": "",
"IsVIP": true,
"SigningTime": null,
"DueDate": null,
"HeadPortrait": null
}
]
}
各位大神么 后台返回给我的数据中存在 null 和” “ 两种形式 我该怎样解析啊 我用的okhttp请求
如果是int、double和boolean返回null就要和后台商量一下了,个人比较喜欢基本数据类型,像integer等在bean里面没用过(fastjson如果写的是基本数据类型但json是null也不会有问题,你可以考虑一下)