{ "age": 25, "isStudent": true } String name = json.get("name").toString(); int age = json.getInt("age"); boolean isStudent = json.getBoolean("isStudent"); for (int i = 0; i < jsonArray.length(); i++) { String name = jsonArray.getString(i); } JSONObject json = new JSONObject(); json.put("age", 25); json.put("isStudent", true); JSONArray jsonArray = new JSONArray();


上一篇:
下一篇:
切换中文