Gitter Stories in Ready

#Delphi-Serialization Delphi-Serialization provides functionality for serializing and deserializing Objects to (currently only) XML.

Roadmap (rough)

  • more testing
  • more flexibility
  • serialize/deserialize to JSON
  • and more

Project-Dependencies

  • DunitX (Testframework)
  • DSharp
  • Spring4D

Example

var
  LCustomer: ICustomer;
  LSerializationFacade: TSerializationFacade;
  LOutputCustomer: TStringStream;
begin
  LCustomer := TCustomer.Create;
  LSerializationFacade := TSerializationFacade.Create;
  LOutputCustomer := TStringStream.Create;
  try
    LSerializationFacade.Serialize<ICustomer>(LCustomer, LOutputCustomer);

    //Do something with the serialized xml-string LOutput.DataString
  finally
    FreeAndNil(LOutputCustomer);
    FreeAndNil(LSerializationFacade);
  end;
end;