[Solved] Android : How to access a JSONObject


try this

try {
JSONObject obj= output.getJSONObject("RESULTS");

JSONArray dataArray= obj.getJSONArray(“stationList“);

for(int i=0;i<dataArray.length();i++)
{

    JSONObject object1=dataArray.getJSONObject(i);
    Strind id = object1.getString("stationID");
}
} catch (JSONException e) {

    e.printStackTrace();

}

In This code output is your JSONObject result

0

solved Android : How to access a JSONObject