import json


def _from_json(filepath):
    """Load a json file to a dictionary."""
    if not filepath:
        return dict()
    with open(str(filepath)) as lic_json_file:
        return json.loads(lic_json_file.read())