Code example for JSONArray

Methods: getDouble

0
	public static Double getDoubleFromJsonArray(JSONArray array, int index) {
		Double value = null;
		 
		try { 
			 
			value = array.getDouble(index); 
			 
		} catch (JSONException jsone) {
			 
			if(LOGGER.isDebugEnabled()) { 
				LOGGER.debug("failed attempt to retrieve index " + index + " from JSON array " + array, jsone);
			} 
			 
		} 
		 
		return value;
	} 
	 
	/** 
	 * @return the Integer value found in the JSONArray using the provided index. If no value is found, null is returned.  
Stop searching for code, let great code find you!  Add Codota to your java IDE