marazt / object-mapper

ObjectMapper is a class for automatic object mapping in Python
MIT License
102 stars 28 forks source link

Nested objects #21

Open danieljausovec opened 5 years ago

danieljausovec commented 5 years ago

Hi.

Can anyone post example how to use mapping with nested objects? Thanks.

kothekarvikram5 commented 3 years ago

I am facing the same issue for complex types of values present in the JSON. I searched through the code but I found only the list as another type that can be mapped.

But, in the case of JSON properties, it can be dict, so if we could directly map dicts. then it would be great.

@direbearform has added support for basic nested objects, but as the example is not present anywhere, I can't make use of this library at its fullest.