System.JSON.TJSONPair.Create
Delphi
constructor Create(const Str: TJSONString; const Value: TJSONValue); overload;
constructor Create(const Str: string; const Value: TJSONValue); overload;
constructor Create(const Str: string; const Value: string); overload;
constructor Create; overload; override;
C++
__fastcall TJSONPair(TJSONString* const Str, TJSONValue* const Value)/* overload */;
__fastcall TJSONPair(const System::UnicodeString Str, TJSONValue* const Value)/* overload */;
__fastcall TJSONPair(const System::UnicodeString Str, const System::UnicodeString Value)/* overload */;
__fastcall virtual TJSONPair()/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.JSON.pas System.JSON.hpp |
System.JSON | TJSONPair |
Description
Creates an instance of the TJSONPair class.
The version of the TJSONPair with parameters of type (TJSONString, TJSONValue) is an utility constructor that creates a JSON pair. The arguments for this version of the constructor are listed in the table below, together with their meanings. The arguments must not be null.
Argument | Meaning |
---|---|
Str |
The name of the pair, given as a TJSONString object |
Value |
The value of the pair, given as a TJSONValue object |
The version of the TJSONPair with parameters of type (UnicodeString, TJSONValue) is a convenience constructor that creates a JSON pair. The arguments for this version of the constructor are listed in the table below, together with their meanings. The arguments are automatically converted to JSON equivalents.
Argument | Meaning |
---|---|
Str |
The name of the pair, given as a UnicodeString |
Value |
The value of the pair, given as a TJSONValue object |
The version of the TJSONPair with parameters of type (UnicodeString, UnicodeString) is a convenience constructor that creates a JSON pair. The arguments for this version of the constructor are listed in the table below, together with their meanings. The arguments are automatically converted to a pair of TJSONString objects.
Argument | Meaning |
---|---|
Str |
The name of the pair, given as a UnicodeString |
Value |
The value of the pair, given as a UnicodeString |