直接上实例:

JSONObject currency = jsonData.getJSONObject("currency");

for (Iterator iter = currency.keys(); iter.hasNext();) {
String key = (String) iter.next();
currencyName.add(currency.getJSONObject(key).get("name"));
currencyCode.add(key);
}

相关文章:

  • 2022-12-23
  • 2021-07-27
  • 2021-12-12
  • 2022-01-22
  • 2021-12-16
  • 2021-07-26
  • 2021-07-29
  • 2021-07-04
猜你喜欢
  • 2022-12-23
  • 2021-11-20
  • 2021-12-11
  • 2021-11-08
  • 2022-02-07
  • 2022-12-23
相关资源
相似解决方案