def createJobListOut(requestUrl, jsonIn):
    """
    Takes JSON document with list of items (jobs/folders) and returns a markdown table
    """
    markdown = "Folders and Jobs in " + requestUrl + "\n\n"
    markdown += "| Type | Name |\n"
    markdown += "|:-----|:-----|\n"
    for listItem in jsonIn["jobs"]:
        type = ""
        if listItem["_class"].endswith(".Folder"):
            type = "Folder"
        else:
            type = "Job"
        markdown += "| " + type + " | " + listItem["name"] + " |\n"
    return markdown