public BigDecimal getBigDecimal ( int index ) throws JSONException { Object object = this . get ( index ) ; try { return new BigDecimal ( object . toString ( ) ) ; } catch ( Exception e ) { throw new JSONException ( "JSONArray[" + index + "] could not convert to BigDecimal." ) ; } }
Get the BigDecimal value associated with an index .