def validate(self) -> None:
    for content in self.contents.values():
        try:
            json.loads(content)
        except ValueError:
            logger.exception('Invalid JSON file')
            raise
def validate(self) -> None:
    for content in self.contents.values():
        try:
            json.loads(content)
        except ValueError:
            logger.exception('Invalid JSON file')
            raise