bagof.hints.json
Types related to JSON (de)serialization.
Attributes
JSONNumber
module-attribute
A number that is properly handled by json.dump:
(int | float).
JSONScalar
module-attribute
A scalar that is properly handled by json.dump:
(int | float | bool | str | None).
JSON
module-attribute
A value that is properly handled by json.dump:
JSON = JSONScalar | Dict[str, JSON] | List[JSON] | Tuple[JSON, ...].
Note that this is a recursive type.
MutableJSON
module-attribute
A JSON value, where all structures (arrays and objects) are mutable.