REST.JsonReflect.TJSONUnMarshal.CreateObject
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 内の値はこのオブジェクトに入れられ、新しいインスタンスは作成されません。