private JSONObject getTaxonomy ( final JSONArray taxonomies , final int index ) { JSONObject object = new JSONObject ( ) ; try { object = ( JSONObject ) taxonomies . get ( index ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; } return object ; }
Return a json object from the provided array . Return an empty object if there is any problems fetching the taxonomy data .