delphimvcframework
delphimvcframework copied to clipboard
Deserialize arrays containing objects fails
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?
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.
This issue should be fixed now, can you test it?