if(allList.length() > 0 ){
List<Object> allListUrl = new ArrayList<>();
for(int i = 0; i < allList.length(); i++){
String str = allList.get(i).toString();
if(str.contains("url")){
JSONObject jsonObject1 = new JSONObject(str);
FrameImageUrl FrameImageUrlBean = gson.fromJson(jsonObject1.toString(),FrameImageUrl.class);
allListUrl.add(FrameImageUrlBean);
}else{
allListUrl.add(str);
}
}
//在解析过程以为是错误格式,看了半天原来是我自己把对象写错了。
怪异格式json
最新推荐文章于 2024-06-21 10:23:19 发布