Table of Contents

TTMSFNCWriter Class

Serializes Delphi objects to JSON streams using RTTI-based property enumeration.

API unit family: TMSFNCPersistence

Syntax

TTMSFNCWriter = class

Properties

Name Description
ExcludeProperties Specifies an array of property names to exclude from serialization.
IOReference Sets a reference object passed to custom write property callbacks.
JSONWriter Provides access to the underlying JSON writer for direct output operations.
RootObject Sets the root object used to resolve relative property references during serialization.

Methods

Name Description
Write Serializes the given object and all its published properties to JSON.
WriteArray Serializes an array of objects under the specified JSON key.

Events

Name Description
OnCustomIsAssignableProperty Fires to determine whether a property is eligible for serialization.
OnCustomWriteProperty Fires before each property is written, allowing the handler to override or skip it.