Serialize data as JSON. :param obj: The data to serialize. :param kwargs: May be passed to the underlying JSON library.
(self, obj: t.Any, **kwargs: t.Any)
| 39 | self._app: App = weakref.proxy(app) |
| 40 | |
| 41 | def dumps(self, obj: t.Any, **kwargs: t.Any) -> str: |
| 42 | """Serialize data as JSON. |
| 43 | |
| 44 | :param obj: The data to serialize. |
| 45 | :param kwargs: May be passed to the underlying JSON library. |
| 46 | """ |
| 47 | raise NotImplementedError |
| 48 | |
| 49 | def dump(self, obj: t.Any, fp: t.IO[str], **kwargs: t.Any) -> None: |
| 50 | """Serialize data as JSON and write to a file. |
no outgoing calls