import json


def load_script(script_path):
    """Load script from a JSON file.
    
    Parameters
    ----------
    script_path : str
        Path to JSON file.

    Returns
    -------
    script : dict or dict[]
        Loaded JSON object.

    """
    with open(script_path) as f:
        script = json.load(f)
    return script