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,tupleanddict(such asrangeorMappingProxyType) are converted tolistanddict. Bytes-like values (bytes,bytearray,memoryview) are rejected withTypeError; decode them tostrfirst.