Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
remram
· 4y ago · 0 comments
The fact that we can't have a type for JSON really does make it look like a toy.
Comments
[–]
ImprobableTruth
4y ago
This is (for now) a limitation of mypy, not of the type system. Pyright and Pyre both can type JSON since they support recursive type aliases.
[–]
ok123456
4y ago
Use pydantic then. Then you get type checking and validation for your json blobs.