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.  
Contextual code suggestions in your IDE  Get Codota for Java