REST.JsonReflect.TJSONUnMarshal.TryCreateObject
Delphi
function TryCreateObject(AClass: TClass; JsonObj: TJSONObject; out AObject: TObject): Boolean;
C++
bool __fastcall TryCreateObject(System::TClass AClass, System::Json::TJSONObject* JsonObj, /* out */ System::TObject* &AObject);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | REST.JsonReflect.pas REST.JsonReflect.hpp |
REST.JsonReflect | TJSONUnMarshal |
Description
The TryCreateObject method creates the AObject of type AClass based on a serialized JsonObj representation.
Returns False if the object instance creation fails.