Deserialize data as JSON read from a file. :param fp: A file opened for reading text or UTF-8 bytes. :param kwargs: May be passed to the underlying JSON library.
(self, fp: t.IO[t.AnyStr], **kwargs: t.Any)
| 65 | raise NotImplementedError |
| 66 | |
| 67 | def load(self, fp: t.IO[t.AnyStr], **kwargs: t.Any) -> t.Any: |
| 68 | """Deserialize data as JSON read from a file. |
| 69 | |
| 70 | :param fp: A file opened for reading text or UTF-8 bytes. |
| 71 | :param kwargs: May be passed to the underlying JSON library. |
| 72 | """ |
| 73 | return self.loads(fp.read(), **kwargs) |
| 74 | |
| 75 | def _prepare_response_obj( |
| 76 | self, args: tuple[t.Any, ...], kwargs: dict[str, t.Any] |