Vote UpVote

Serializing Generic Object Lists with TJson

The Art of Delphi Programming – In the previous blog post we learned how to decorate a field of a class with attributes to adjust the Json serialization to our needs. This post is about serializing fields of type TObjectList<T> or descendants thereof. Let’s recap the problem and the final question: The Json serializer does a good job for array of objects, but fails miserably on TObjectList<T> fields. What can we do to make serializing generic object lists being serialized properly in both directions? As seen in the previous post, our best bet will be some neat attributes to decorate the fields with. The ...
Favorite? Off-Topic? Uwe Raabe @ 2020-03-02 18:05


Visits: 169
Votes: 3
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
MichaƂ Rajewicz
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)