import json


def read_data(path):
    """Load data from local data file"""
    with open(path, 'r') as f:
        contents = f.read()
        if contents:
            return json.loads(contents)
        else:
            return {'upcoming': [], 'recent': []}