def outputResultsJSON(self): # output results only for the last exit if not self.nextCapacityStationBuffer: Exit.outputResultsJSON(self)