Task: Suggest a completion for the following python code.
input: import json

def read_task_from_jsonl(data_file):
    '''This function will read a .jsonl file and return the ``task`` fields in all the lines.'''
output: import json

def read_task_from_jsonl(data_file):
    '''This function will read a .jsonl file and return the ``task`` fields in all the lines.'''
    with open(data_file) as fin:
        return [json.loads(line)['task'] for line in fin]