REST.JsonReflect.TJSONUnMarshal.CreateObject

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function CreateObject(AClass: TClass; JsonObj: TJSONObject; AObject:TObject=nil): TObject;

C++

System::TObject* __fastcall CreateObject(System::TClass AClass, System::Json::TJSONObject* JsonObj, System::TObject* AObject = (System::TObject*)(0x0));

プロパティ

種類 可視性 ソース ユニット
function public
REST.JsonReflect.pas
REST.JsonReflect.hpp
REST.JsonReflect TJSONUnMarshal


説明

シリアル化された JSON 表現に基づいて、オブジェクトを作成します。

CreateObject メソッドは、JsonObj で指定されたシリアル化された JSON 表現に基づいた、AClass 型のオブジェクト インスタンスを返します。AObject が AClass のインスタンスを保持している場合、JsonObj 内の値はこのオブジェクトに入れられ、新しいインスタンスは作成されません。

関連項目