import json


def json2dict(json_path: str):
    """
    Read json file as python dictionary
    """

    assert json_path.endswith('.json')

    with open(json_path, 'r') as f:
        doc = json.load(f)
    return doc