Are there Delphi object serialization libraries wi

2020-03-17 02:03发布

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

3条回答
Ridiculous、
2楼-- · 2020-03-17 02:44

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?

查看更多
等我变得足够好
3楼-- · 2020-03-17 02:52

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

查看更多
Lonely孤独者°
4楼-- · 2020-03-17 03:05

DeHL have for XML, ini but still not for JSON

查看更多
登录 后发表回答