Table of Contents

TTMSFNCObjectHelper Class

Extends TObject with convenience methods for JSON serialization, deserialization, file and stream persistence, and debug logging.

API unit family: TMSFNCTypes

Syntax

TTMSFNCObjectHelper = class

Properties

Name Description
JSON Gets or sets the object's state as a JSON string.
JSONValue The object serialized as a TJSONValue tree.

Methods

Name Description
FromJSON Populates the object properties from the specified JSON string.
LoadFromJSONFile Populates the object properties from the JSON file at the specified path.
LoadFromJSONStream Reads JSON data from the specified stream and populates the object properties.
Log Writes a debug representation of the object to the application log output.
SaveToJSONFile Serializes the object to a JSON file at the specified path.
SaveToJSONStream Serializes the object to a JSON string and writes it to the specified stream.
ToJSON Serializes the object to a JSON string, excluding properties listed in AExcludedProperties.