Skip to contents

Reads the events from the events.json file specific to this site and block combination and returns as a list of events.

Usage

read_json_file(site, block, base_folder = json_file_base_folder())

Arguments

site

The site to read from

block

The block to read from

base_folder

Included for testing reasons, the default value should otherwise be used

Value

A list of events, which are themselves lists. If the corresponding file does not exist or there are no events, returns an empty list.