7

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;
...
mjn
  • 36,362
  • 28
  • 176
  • 378

3 Answers3

2

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?

Community
  • 1
  • 1
TridenT
  • 4,879
  • 1
  • 32
  • 56
2

DeHL have for XML, ini but still not for JSON

Hugues Van Landeghem
  • 6,755
  • 3
  • 34
  • 59
0

SvSerializer is a Library that serializes and de-serializes to/from Objetic/JSON/XML. A complete tool!

https://code.google.com/p/delphi-oop/wiki/SvSerializer

NaN
  • 8,596
  • 20
  • 79
  • 153