import json


def load_data_from_json(jsonfile):
    """Load the data contained in a .json file and return the corresponding Python object.

    :param jsonfile: The path to the .json file
    :type jsonfile: str
    :rtype: list or dict
    """
    jsondata = open(jsonfile).read()
    data = json.loads(jsondata)
    return data