Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deserialize arrays containing objects fails #404

Open
Yvi71 opened this issue Jul 8, 2020 · 2 comments
Open

Deserialize arrays containing objects fails #404

Yvi71 opened this issue Jul 8, 2020 · 2 comments

Comments

@Yvi71
Copy link

Yvi71 commented Jul 8, 2020

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) using rtti info. Therefore i extended the TMVCJsonDataObjectsSerializer.JsonDataValueToAttribute method for the case the target type is a generic list. Is that of interest?

@danieleteti
Copy link
Owner

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 danieleteti self-assigned this Aug 19, 2020
@danieleteti
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants