Code example for JSONArray

Methods: getJSONArray

0
	public static JSONArray getJsonArrayFromJsonArray(JSONArray array, int index) {
		JSONArray a = null;
		 
		try { 
			 
			a = array.getJSONArray(index); 
			 
		} catch (JSONException jsone) {
			 
			if(LOGGER.isDebugEnabled()) { 
				LOGGER.debug("failed attempt to retrieve index " + index + " from JSON array " + array, jsone);
			} 
			 
		} 
		 
		return a;
	} 
	 
	/** 
	 * @return the JSONObject value found in the JSONArray using the provided index. If no value is found, null is returned.  
Connect your IDE to all the code out there  Get Codota for Java