'Check the json file for changes and load it if needed.'

def get_configuration(self, filename=None):

    if (not filename):
        filename = CONF.scheduler_json_config_location
    if (not filename):
        return self.data
    if self.last_checked:
        now = self._get_time_now()
        if ((now - self.last_checked) < datetime.timedelta(minutes=5)):
            return self.data
    last_modified = self._get_file_timestamp(filename)
    if ((not last_modified) or (not self.last_modified) or (last_modified > self.last_modified)):
        self.data = self._load_file(self._get_file_handle(filename))
        self.last_modified = last_modified
    if (not self.data):
        self.data = {}
    return self.data
