Data.DBXJSONReflect.JSONOwned

From RAD Studio API Documentation
Jump to: navigation, search

Data.DBXJSONReflect.JSONBooleanAttributeSystem.TCustomAttributeSystem.TObjectJSONOwned
[–] Properties
Type: class
Visibility: public
Source:
Data.DBXJSONReflect.pas
Data.DBXJSONReflect.hpp
Unit: Data.DBXJSONReflect
Parent: Data.DBXJSONReflect

Delphi

JSONOwned = class(JSONBooleanAttribute)

C++

class PASCALIMPLEMENTATION JSONOwned : public JSONBooleanAttribute

Description

Attribute that specifies whether a field should be freed before being populated during the unmarshalling process.

If the Value property of this JSONOwned is False, the field will not be freed during unmarshalling, even if an object was allocated by the constructor.

If JSONOwned is not present, the default value is True.

Note: Setting the value of the JSONOwned attribute to False may lead to memory leaks.

See Also