Table of Contents

TTMSMCPReader.Read Method

Deserializes a new object of the given class from the JSON stream.

API unit family: TMS.MCP.Persistence Declaring type: TTMSMCPReader

Overloads

Overload 1

Deserializes a new object of the given class from the JSON stream.

function Read(AClass: TClass): TObject; overload;

Parameters

Name Description
AClass The class type used to create the deserialized object.

Returns

The newly created and populated object instance.

Overload 2

Deserializes JSON into an existing object, populating its published properties.

procedure Read(AObject: TObject); overload;

Parameters

Name Description
AObject The object to populate from the JSON stream.