import json


def list_of_dicts_to_jsonl(list_input):
    """
    takes a list of dict objects and turns it into a jsonl doc
    """

    jsonl_contents = ""
    for each_entry in list_input:
        if len(jsonl_contents) == 0:
            jsonl_contents = json.dumps(each_entry)
        else:
            jsonl_contents = jsonl_contents + "\n" + json.dumps(each_entry)

    return jsonl_contents