def load_json(path):
    """
    Load pipeline definition file in JSON format.

    :param Path path: Path to the JSON file.

    :return: A dictionary data structure with the pipeline definition.
    :rtype: dict
    """
    from ujson import loads
    return loads(path.read_text(encoding='utf-8'))
