Table of Contents

JsonManagedAttribute Class

Indicates the object lifetime is managed by the class itself, so serializer should not destroy it.

Remarks

You can use this attribute in class fields that are objects, or in the class declaration itself. When applied to a class, it means the attribute will be applied to all object fields of that class. This attribute indicates the serializer that it should not destroy those objects, as their lifetime is managed by the class itself. This is useful for classes that implement their own memory management of its associated objects.

Syntax

Unit: Bcl.Json.Attributes

JsonManagedAttribute = class(TCustomAttribute);