Data.DBXJSONReflect.TJSONUnMarshal.JSONToTValue

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function JSONToTValue(JsonValue: TJSONValue; rttiType: TRttiType): TValue;

C++

System::Rtti::TValue __fastcall JSONToTValue(System::Json::TJSONValue* JsonValue, System::Rtti::TRttiType* rttiType);

Properties

Type Visibility Source Unit Parent
function protected
Data.DBXJSONReflect.pas
Data.DBXJSONReflect.hpp
Data.DBXJSONReflect TJSONUnMarshal

Description

Converts a TJSONValue into its equivalent TValue, based on the given type information.

  • JsonValue represents the TJSONValue to be converted.
  • rttiType represents the run-time type information to be converted into.

JSONToTValue raises an exception if the conversion is not possible.

See Also