2 ms·
> JSON = Union[....] This does not define the type of a valid json object. (fe None is not a valid json object, neither is '')
by toolslive 4y ago
> JSON = Union[....]
This does not define the type of a valid json object.
(fe None is not a valid json object, neither is '')
- ImprobableTruth 4y agoA decade or so ago JSON was changed so that JSON text doesn't have to be an object, it can also be a value. 'null' (or say, '5') is therefore legal JSON.
- toolslive 4y agoyou're right: https://www.rfc-editor.org/rfc/rfc8259.txt https://www.rfc-editor.org/rfc/rfc8259.txt