ObjDict
Objdict, short for object dictionary, is a data structure that combines dictionary semantics with attribute-style access. It allows keys to be retrieved and assigned using both the standard dictionary syntax (obj['key']) and dot notation (obj.key). This dual access can simplify working with nested, JSON-like data.
Implementation typically involves subclassing a dictionary or wrapping a dict and routing attribute access to keys.
Usage and advantages: Objdicts are handy for configuration objects, data models, and quick prototyping when data
Limitations and caveats: Attribute access can clash with existing object attributes or methods, and keys that
Variants and context: The concept appears in multiple languages and libraries under names like ObjectDict or