add a JSONEncoder subclass for converting icalendars into JSON