import logging
import json


def loadjson(jsonfile):

    """Load content from json file as dictionary.

    Parameters
    ----------
    jsonfile : str
        Path to json file to be read.

    Returns
    -------
    d : dict
        Dictionary of the content stored in the json file.
    """
    
    logging.info("Loading objects from file %s." % jsonfile)

    with open(jsonfile,'r') as f:
        d = json.load(f)

    return d