1 from collections.abc import Callable
6 def dumps(__obj: Any, default: Callable[[Any], Any] | None = ..., option: int | None = ...) -> bytes: ...
7 def loads(__obj: bytes | str) -> Any: ...
9 class JSONDecodeError(ValueError): ...
10 class JSONEncodeError(TypeError): ...
12 OPT_APPEND_NEWLINE: int
16 OPT_OMIT_MICROSECONDS: int
17 OPT_PASSTHROUGH_DATACLASS: int
18 OPT_PASSTHROUGH_DATETIME: int
19 OPT_PASSTHROUGH_SUBCLASS: int
20 OPT_SERIALIZE_DATACLASS: int
21 OPT_SERIALIZE_NUMPY: int
22 OPT_SERIALIZE_UUID: int
24 OPT_STRICT_INTEGER: int