JSONArray jsonArr = jsonData.getJSONArray("gameList");
for (int i = 0; i < jsonArr.length(); i++) {
String regionStr = ((JSONObject) jsonArr.opt(i))
.getString("language")
+ " " + ((JSONObject) jsonArr.opt(i)).getString("platform")
+ " " + ((JSONObject) jsonArr.opt(i)).getString("region");
map = new HashMap();
map.put("gameInfo", (JSONObject) jsonArr.opt(i));
map.put("name", ((JSONObject) jsonArr.opt(i)).getString("name"));
map.put("region", regionStr);
list.add(map);
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2021-12-04
  • 2022-12-23
  • 2021-12-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2021-12-25
  • 2022-12-23
  • 2021-11-18
相关资源
相似解决方案