import json


def load_json(json_path):
    """Try to load a JSON file, or return an empty dictionary."""
    try:
        with open(json_path, 'r') as jsonf:
            parsed = json.load(jsonf)
    except FileNotFoundError:
        parsed = dict()
    return parsed