delphimvcframework icon indicating copy to clipboard operation
delphimvcframework copied to clipboard

Deserialize arrays containing objects fails

Open Yvi71 opened this issue 5 years ago • 2 comments
trafficstars

while deserializing Json objects containing records containing sub-objects, i encountered a problem. Maybe this is quite uncommon or i did something wrong with the usage of the serializer, but i could provide code to fix the issue. It will deserialize such objects in gerneric Lists (TList<Objecttype>) using rtti info. Therefore i extended the TMVCJsonDataObjectsSerializer.JsonDataValueToAttribute method for the case the target type is a generic list. Is that of interest?

Yvi71 avatar Jul 08 '20 08:07 Yvi71

Yes, create a sample project with a couple of tests (serialization and deserialization with border case too) and we'll manage to merge into the repo.

danieleteti avatar Aug 19 '20 10:08 danieleteti

This issue should be fixed now, can you test it?

danieleteti avatar Sep 22 '20 11:09 danieleteti