REST.Json.Types.JSONOwnedAttribute

From RAD Studio API Documentation
Jump to: navigation, search

REST.Json.Types.JSONBooleanAttributeSystem.TCustomAttributeSystem.TObjectJSONOwnedAttribute

Delphi

JSONOwnedAttribute = class(JSONBooleanAttribute)

C++

class PASCALIMPLEMENTATION JSONOwnedAttribute : public JSONBooleanAttribute

Properties

Type Visibility Source Unit Parent
class public
REST.Json.Types.pas
REST.Json.Types.hpp
REST.Json.Types REST.Json.Types

Description

Attribute that specifies whether a field should be freed before being populated during unmarshalling (if a value was assigned by the constructor).

If JSONOwnedAttribute is not present in a field, that field should be freed. If JSONOwnedAttribute is present but is False, that field is not freed during unmarshalling, even if an object was allocated by the constructor (which may lead to memory leaks).

See Also