public JsonObject getJsonObject(final String key, final JsonObject def) {
    """
	Like {@link #getJsonObject(String)} but specifies a default value to return if there is no entry.
    """
		JsonObject val = getJsonObject(key);

		if (val == null) {
			if (map.containsKey(key)) {
				return null;
			}
			return def;
		}

		return val;
	}
public JsonObject getJsonObject(final String key, final JsonObject def) {
		JsonObject val = getJsonObject(key);

		if (val == null) {
			if (map.containsKey(key)) {
				return null;
			}
			return def;
		}

		return val;
	}
public JsonObject getJsonObject ( final String key , final JsonObject def ) { JsonObject val = getJsonObject ( key ) ; if ( val == null ) { if ( map . containsKey ( key ) ) { return null ; } return def ; } return val ; }
Like {@link #getJsonObject(String)} but specifies a default value to return if there is no entry.
Like {