import json


def load_state_file(filename):
    """ Load (and parse) the state file. """
    try:
        with open(filename) as f:
            return json.load(f)
    except FileNotFoundError:
        return dict()