As shown below:
JSONArray jsonArray1 = jsonObject.getJSONArray("result"); for (int i = 0; i < jsonArray1.length(); i++) { JSONObject temp = (JSONObject) jsonArray1.get(i); String x = temp.getString("x"); String y = temp.getString("y"); if (x == null || y == null) { flag = false; handler.sendEmptyMessage(NO_LOCATION); }}The above example explanation of Java obtaining json array objects is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.