Data.DBXJSONReflect.TJSONUnMarshal.TryCreateObject
Delphi
function TryCreateObject(Data: TObject; const Field: string; JsonObj: TJSONObject; out MarshalledObj: TObject): Boolean;
C++
bool __fastcall TryCreateObject(System::TObject* Data, const System::UnicodeString Field, System::Json::TJSONObject* JsonObj, /* out */ System::TObject* &MarshalledObj);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | protected | Data.DBXJSONReflect.pas Data.DBXJSONReflect.hpp |
Data.DBXJSONReflect | TJSONUnMarshal |
Description
Creates an object based on a serialized JSON representation.
The TryCreateObject method creates an object based on a serialized JSON representation. The JsonObj parameter specifies the JSON object instance. If the object cannot be instantiated based on the marshalled type name, the user is notified.
See Also