import json


def load_json(path):
    """Opens a json file and returns the content as a python dictonary.

    Parameters:
        path(str): Path of json file
    """
    if not path.lower().endswith('.json'):
        raise ValueError("Wrong file format!")
    with open(path) as f:
        return json.load(f)