So I have an Android app I am working on that makes an API call to the server and returns JSON information. Now in my android app I can parse the JSON but only up until the
You can create JSON array when create JSON object fail
try { JSONObject jsonObject = new JSONObject(result); // do something }catch (JSONException e) { try{ JSONObject jsonObject = new JSONArray(result); // do something }catch(JSONException e){ //... } }