Method: flask.json.provider.JSONProvider.load
Calls: 1, Exceptions: 0, Paths: 1Back
Path 1: 1 calls (1.0)
StringIO (1)
{} (1)
{'name': 'Flask'} (1)
1def load(self, fp: t.IO[t.AnyStr], **kwargs: t.Any) -> t.Any:
2 """Deserialize data as JSON read from a file.
3
4 :param fp: A file opened for reading text or UTF-8 bytes.
5 :param kwargs: May be passed to the underlying JSON library.
6 """
7 return self.loads(fp.read(), **kwargs)