json serializer for calendar