Re:Python’s “type hints” are a bit of a disappointment to me
by ImprobableTruth on Friday April 22, 2022 @10:31AM
(#31122024)
A 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.
Re:Python’s “type hints” are a bit of a disappointment to me
by toolslive on Friday April 22, 2022 @11:03AM
(#31122472)
you're right:
https://www.rfc-editor.org/rfc/rfc8259.txt
This does not define the type of a valid json object. (fe None is not a valid json object, neither is '')