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));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | REST.JsonReflect.pas REST.JsonReflect.hpp |
REST.JsonReflect | TJSONUnMarshal |
Description
Creates an object based on a serialized JSON representation
The CreateObject method returns an object instance of AClass
type based on the serialized JSON representation specified in JsonObj
. If AObject
holds an instance of AClass, then this object is filled from the values in JsonObj and no new instance is created.