System.JSON.TJSONArray.Add
Delphi
function Add(const Element: string): TJSONArray; overload;
function Add(const Element: Integer): TJSONArray; overload;
function Add(const Element: Double): TJSONArray; overload;
function Add(const Element: Boolean): TJSONArray; overload;
function Add(const Element: TJSONObject): TJSONArray; overload;
function Add(const Element: TJSONArray): TJSONArray; overload;
C++
TJSONArray* __fastcall Add(const System::UnicodeString Element)/* overload */;
TJSONArray* __fastcall Add(const int Element)/* overload */;
TJSONArray* __fastcall Add(const double Element)/* overload */;
TJSONArray* __fastcall Add(const bool Element)/* overload */;
TJSONArray* __fastcall Add(TJSONObject* const Element)/* overload */;
TJSONArray* __fastcall Add(TJSONArray* const Element)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.JSON.pas System.JSON.hpp |
System.JSON | TJSONArray |
Description
Adds a non-null value to the current element list.
Call Add to add the value given through the Element parameter to the current element list of the JSON array.
Note: The value given through the Element parameter cannot be null.