Table of Contents

TTMSFNCReader.Read Method

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

API unit family: TMSFNCPersistence Declaring type: TTMSFNCReader

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.