Override Schedule's as_json method to customize json serialization of schedules, as it was severely broken before