public JSONObject getJSONObject() {
        TextFile df = getDataFile();
        if(df.exists()) {
            try {
                return JSONObject.fromObject(df.read());
            } catch (JSONException | IOException e) {
                LOGGER.log(Level.SEVERE,"Failed to parse "+df,e);
                df.delete(); // if we keep this file, it will cause repeated failures
                return null;
            }
        } else {
            return null;
        }
    }
public JSONObject getJSONObject ( ) { TextFile df = getDataFile ( ) ; if ( df . exists ( ) ) { try { return JSONObject . fromObject ( df . read ( ) ) ; } catch ( JSONException | IOException e ) { LOGGER . log ( Level . SEVERE , "Failed to parse " + df , e ) ; df . delete ( ) ; return null ; } } else { return null ; } }
Gets the raw update center JSON data.