Code example for JSONArray

Methods: getDouble

0
		}; 
		final PrimitiveConverter<Float> jsonFloatRetriever = new PrimitiveConverter<Float> () {
			@Override 
			public Float retrieve (final JSONObject json, final String key) throws JSONException { return ((Double)json.getDouble(key)).floatValue(); }
			@Override 
			public Float retrieve(final JSONArray json, final int index) throws JSONException { return ((Double)json.getDouble(index)).floatValue(); }
			@Override 
			protected Double convertToPutableObject (final Float value) { return value.doubleValue(); }
		}; 
		final PrimitiveConverter<Short> jsonShortRetriever = new PrimitiveConverter<Short> () {
			@Override 
			public Short retrieve (final JSONObject json, final String key) throws JSONException { return ((Integer)json.getInt(key)).shortValue(); }
			@Override 
			public Short retrieve (final JSONArray json, final int index) throws JSONException { return ((Integer)json.getInt(index)).shortValue(); }
			@Override 
			protected Integer convertToPutableObject (final Short value) { return value.intValue(); }
		}; 
		final PrimitiveConverter<Byte> jsonByteRetriever = new PrimitiveConverter<Byte> () {
			@Override 
			public Byte retrieve (final JSONObject json, final String key) throws JSONException { return ((Integer)json.getInt(key)).byteValue(); }
			@Override