save schedule to json file for persistence