01 / 06
When you cannot line the property names up
Every object type so far has been written by lining up the property names in advance — name, age, and so on. For data whose contents are settled, like a person or a product, that is right.
But what about data like "a score per person"? The keys are people’s names, and what the keys will be is not knowable until it runs. You cannot line them up one by one.