Feature/timeperiods to json