import json


def get_payload(path):
    """
    Return the JSON representation of a task. This can be passed into the `create_task` method as the payload when creating new tasks.

    Args:
        path (str): relative or absolute path to payload

    Returns:
        JSON: representation of task

    """
    return json.load(open(path))