3 ms·
Plus, if you really want it Python has tons of hooks to make json.load return whatever sort of struct you want.
by TylerE 7y ago
Plus, if you really want it Python has tons of hooks to make json.load return whatever sort of struct you want.
- ben509 7y agoOr you can let json.load do its thing and use a nice module like json-syntax[1] to convert it to well typed values and back. (Yup, plugging my library.) [1]: https://pypi.org/project/json-syntax/ https://pypi.org/project/json-syntax/