System.JSON.TJSONObject.AddPair

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function AddPair(const Pair: TJSONPair): TJSONObject; overload;
function AddPair(const Str: TJSONString; const Val: TJSONValue): TJSONObject; overload;
function AddPair(const Str: string; const Val: TJSONValue): TJSONObject; overload;
function AddPair(const Str: string; const Val: string): TJSONObject; overload;

C++

TJSONObject* __fastcall AddPair(TJSONPair* const Pair)/* overload */;
TJSONObject* __fastcall AddPair(TJSONString* const Str, TJSONValue* const Val)/* overload */;
TJSONObject* __fastcall AddPair(const System::UnicodeString Str, TJSONValue* const Val)/* overload */;
TJSONObject* __fastcall AddPair(const System::UnicodeString Str, const System::UnicodeString Val)/* overload */;

プロパティ

種類 可視性 ソース ユニット
function public
System.JSON.pas
System.JSON.hpp
System.JSON TJSONObject

説明

現在の JSON オブジェクトに新しいペアを追加します。

現在の JSON オブジェクトに新しい JSON ペアを追加するには、AddPair を呼び出します。追加するペアは、Pair 引数として与えられた JSON ペア、または、Str パラメータと Val パラメータとして与えられた 2 つの独立した JSON オブジェクトのいずれかの方法で渡されます。

たとえ、選択したメソッドがオーバーロードされていても、渡す引数は NULL であってはいけません。

関連項目