Skip to main content
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.

TMS.MCP.Persistence.hppPascalC++
function Read(AClass: TClass): TObject; overload;
System::TObject* __fastcall Read(System::TClass AClass)/* 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.

TMS.MCP.Persistence.hppPascalC++
procedure Read(AObject: TObject); overload;
void __fastcall Read(System::TObject* AObject)/* overload */;

Parameters

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