JSONObject
作者:
皓皓amous | 来源:发表于
2022-10-28 16:51 被阅读0次 JSONObject jsonObject = null;
try {
jsonObject = new JSONObject(bean);
int isOriImg = jsonObject.getInt(imgStr);
if (isOriImg == 1) {
testUri = true;
}
String thumb_localPath = jsonObject.getString(urlStr);
jsonObject.put(androidThumbUrl, thumb_localPath);
jsonObject.remove(imgStr);
jsonObject.put(imgStr, testUri);
String jsonStr = jsonObject.toString();
TestBeaan msgBeanImage = JSON.parseObject(jsonStr, TestBeaan.class);
} catch (JSONException e) {
}
本文标题:JSONObject
本文链接:https://www.haomeiwen.com/subject/wkutzrtx.html
网友评论