import json


def load_task(json_file):
    """Opens a task json file and returns its contents"""

    try:
        with open(json_file, 'r') as jinput:
            raw_input = json.load(jinput)
    except FileNotFoundError as e:
        print(f'\n\nError, file not found: {json_file}', end='\n\n')
        return
    return raw_input