mjn
mjn

Reputation: 36634

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;
...

Upvotes: 7

Views: 2606

Answers (3)

NaN
NaN

Reputation: 9094

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

Upvotes: 0

TridenT
TridenT

Reputation: 4909

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?

Upvotes: 2

Hugues Van Landeghem
Hugues Van Landeghem

Reputation: 6808

DeHL have for XML, ini but still not for JSON

Upvotes: 2

Related Questions