다음 Json이 있습니다. linkJson은 JsonArray에서 JsonArray를 가져옵니다.
나는 image_hall_list
과 image_place_list
모두 url
값을 얻고 싶습니다.
다음 코드를 시도했지만 결과가 없습니다.
JSONObject JO = new JSONObject(result);
JSONArray ja = JO.getJSONArray("image_place_list"); //get the array
for (int i = 0; i < ja.length(); i++) {
JSONObject jo = null;
try {
jo = ja.getJSONObject(i);
jsonurl.add(jo.getString("url"));
} catch (JSONException e1) {
e1.printStackTrace();
}
}