Path 1: 1 calls (1.0)

{'name': 'Flask'} (1)

StringIO (1)

{} (1)

1def dump(self, obj: t.Any, fp: t.IO[str], **kwargs: t.Any) -> None:
2        """Serialize data as JSON and write to a file.
3
4        :param obj: The data to serialize.
5        :param fp: A file opened for writing text. Should use the UTF-8
6            encoding to be valid JSON.
7        :param kwargs: May be passed to the underlying JSON library.
8        """
9        fp.write(self.dumps(obj, **kwargs))