REST.JsonReflect.TMarshalUnmarshalBase.RegisterJSONMarshalled
Delphi
procedure RegisterJSONMarshalled(clazz: TClass; const Field: string; Marshal: Boolean); overload;
C++
void __fastcall RegisterJSONMarshalled(System::TClass clazz, const System::UnicodeString Field, bool Marshal)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | REST.JsonReflect.pas REST.JsonReflect.hpp |
REST.JsonReflect | TMarshalUnmarshalBase |
Description
Registers whether a field or type should be marshalled/unmarshalled.
The RegisterJSONMarshalled method takes priority over the JSONMarshalledAttribute, which defaults to True
. If Marshal
is False
, the field/type is skipped during the marshalling or unmarshalling process.