Data.DBXJSONReflect.TJSONUnMarshal.TryCreateObject
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: protected | |
| Source: Data.DBXJSONReflect.pas Data.DBXJSONReflect.hpp
| |
| Unit: Data.DBXJSONReflect | |
| Parent: TJSONUnMarshal | |
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);
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