def to_json(self, **kwargs: Mapping) -> str:
content = {<EOL>'<STR_LIT>': dict(self.Header),<EOL>'<STR_LIT>': self.Reads,<EOL>'<STR_LIT>': dict(self.Settings),<EOL>'<STR_LIT>': [sample.to_json() for sample in self.samples],<EOL>**{title: dict(getattr(self, title)) for title in self._sections},<EOL>}<EOL>return json.dumps(content, **kwargs)<EOL>
Write this :class:`SampleSheet` to JSON.

        Returns:
            str: The JSON dump of all entries in this sample sheet.