Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there Delphi object serialization libraries with support for Generics?

All open source object serialization libraries which I know of (JvAppStorage, NativeXml, OmniXML, SuperObject, lkJSON) seem to have no support for Generics properties yet. (Please correct me if I am wrong).

Do you know a library which has this feature or plans to add it? How about the JSON serialization library in Delphi 2010 (I am still using Delphi 2009)

Example

...
published
  property Prop1: TObjectList<TMyPersistent> read GetProp1 write SetProp1;
...
like image 438
mjn Avatar asked Jun 11 '11 06:06

mjn


2 Answers

Have a look to my simple solution using JCL/JVCL serializer in this post:
How to serialize Delphi TObjectList<TMyClass> type to XML with TJvAppXMLFileStorage?

like image 123
TridenT Avatar answered Oct 29 '22 20:10

TridenT


DeHL have for XML, ini but still not for JSON

like image 21
Hugues Van Landeghem Avatar answered Oct 29 '22 21:10

Hugues Van Landeghem