src/main/java/org/a05annex/util/JsonSupport.java
static public double parseDouble(@NotNull JSONObject dict, @NotNull String key, double defaultValue) {
        double value = defaultValue;
        Object valueObj = dict.get(key);
        if (null != valueObj) {
            value = (double) valueObj;
        }
        return value;
    }
/**
     * Parse the double value for an optional key in a JSON dictionary. If the key does not exist, the
     * default will be returned.
     *
     * @param dict         The JSON representation of a dictionary.
     * @param key          The key for the value to be obtained.
     * @param defaultValue The default if the key has not been specified.
     * @return Returns the value for the key.
     * @throws ClassCastException The value of the key is not a {@code double}.
     */
Parse the double value for an optional key in a JSON dictionary. If the key does not exist, the
default will be returned.

@param dict         The JSON representation of a dictionary.
@param key          The key for the value to be obtained.
@param defaultValue The default if the key has not been specified.
@return Returns the value for the key.
@throws ClassCastException The value of the key is not a  double.
Parse the double value for an optional key in a JSON dictionary . If the key does not exist the default will be returned . @param dict The JSON representation of a dictionary . @param key The key for the value to be obtained . @param defaultValue The default if the key has not been specified . @return Returns the value for the key . @throws ClassCastException The value of the key is not a double .
static public double parseDouble(@NotNull JSONObject dict, @NotNull String key, double defaultValue) {
        double value = defaultValue;
        Object valueObj = dict.get(key);
        if (null != valueObj) {
            value = (double) valueObj;
        }
        return value;
    }
static public double parseDouble ( @ NotNull JSONObject dict , @ NotNull String key , double defaultValue ) { double value = defaultValue ; Object valueObj = dict . get ( key ) ; if ( null != valueObj ) { value = ( double ) valueObj ; } return value ; }
Parse the double value for an optional key in a JSON dictionary.
Parse the double value for an optional key in a JSON dictionary .