src/main/java/org/a05annex/util/JsonSupport.java
@Nullable
    static public String parseString(@NotNull JSONObject dict, @NotNull String key, @Nullable String defaultValue) {
        String value = defaultValue;
        Object valueObj = dict.get(key);
        if (null != valueObj) {
            value = (String) valueObj;
        }
        return value;
    }
/**
     * Parse the {@code String} 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 value for the string.
     * @return The parsed String if the {@code key} is specified in the JSON, {@code defaultValue} otherwise.
     * @throws ClassCastException The value of the key is not a {@code String}.
     */
Parse the  String 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 value for the string.
@return The parsed String if the  key is specified in the JSON,  defaultValue otherwise.
@throws ClassCastException The value of the key is not a  String.
Parse the String 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 value for the string . @return The parsed String if the key is specified in the JSON defaultValue otherwise . @throws ClassCastException The value of the key is not a String .
@Nullable
    static public String parseString(@NotNull JSONObject dict, @NotNull String key, @Nullable String defaultValue) {
        String value = defaultValue;
        Object valueObj = dict.get(key);
        if (null != valueObj) {
            value = (String) valueObj;
        }
        return value;
    }
@ Nullable static public String parseString ( @ NotNull JSONObject dict , @ NotNull String key , @ Nullable String defaultValue ) { String value = defaultValue ; Object valueObj = dict . get ( key ) ; if ( null != valueObj ) { value = ( String ) valueObj ; } return value ; }
Parse the {@code String} value for an optional key in a JSON dictionary.
Parse the { @code String } value for an optional key in a JSON dictionary .