REST.JsonReflect.TMarshalUnmarshalBase.ShouldMarshal

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ShouldMarshal(Data: TObject; rttiField: TRttiField): Boolean;

C++

bool __fastcall ShouldMarshal(System::TObject* Data, System::Rtti::TRttiField* rttiField);

Properties

Type Visibility Source Unit Parent
function public
REST.JsonReflect.pas
REST.JsonReflect.hpp
REST.JsonReflect TMarshalUnmarshalBase

Description

Checks whether or not an object field or type should be marshalled based on the JSONMarshalled registration and attribute.

The ShouldMarshal checks whether or not an object field or type should be marshalled based on the JSONMarshalled registration and attribute. The RegisterJSONMarshalled method takes priority over the JSONMarshalledAttribute, and both default to True.

See Also