labapi.util.types.JsonData#

labapi.util.types.JsonData: TypeAlias = 'Sequence[JsonData] | Mapping[str, JsonData] | str | bool | int | float | None'#

A recursive type alias representing any data structure that can be serialized to or deserialized from JSON.

When serializing, sequences and mappings other than list, tuple and dict (such as range or MappingProxyType) are converted to list and dict. Bytes-like values (bytes, bytearray, memoryview) are rejected with TypeError; decode them to str first.