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;
...
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?
DeHL拥有XML,ini但仍不适用于JSON
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
链接地址: http://www.djcxy.com/p/52904.html