public double getDouble(int index) throws KJ_JSONException { KJ_JSONValue val = arr.get(index); Double dbl = val.getDouble(); if (dbl == null) throw new KJ_JSONException("Not a double type"); return dbl; }