Data.DBXJSONReflect.TJSONUnMarshal.JSONToTValue
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: protected | |
| Source: Data.DBXJSONReflect.pas Data.DBXJSONReflect.hpp
| |
| Unit: Data.DBXJSONReflect | |
| Parent: TJSONUnMarshal | |
Delphi
function JSONToTValue(JsonValue: TJSONValue; rttiType: TRttiType): TValue;
C++
System::Rtti::TValue __fastcall JSONToTValue(System::Json::TJSONValue* JsonValue, System::Rtti::TRttiType* rttiType);
Description
Converts a TJSONValue into its equivalent TValue, based on the given type information.
JsonValuerepresents the TJSONValue to be converted.
rttiTyperepresents the run-time type information to be converted into.
JSONToTValue raises an exception if the conversion is not possible.