美文网首页
JSONObject

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