On 11/27/20 6:17 PM, Tin Tvrtković wrote:
[...] what's the benefit of using typed dictionaries instead of classes? To me structured data in Python automatically means a class.
Typed dictionaries are the natural form that JSON data comes in over the wire. They can be trivially serialized and deserialized (but not parsed) without any additional logic.
For applications that use a lot of JSON data - such as web applications - using typed dictionaries is very convenient.