System.JSON.TJSONArray.Add

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Add(const Element: string): TJSONArray; overload;
function Add(const Element: Integer): TJSONArray; overload;
function Add(const Element: Cardinal): TJSONArray; overload;
function Add(const Element: Int64): TJSONArray; overload;
function Add(const Element: UInt64): TJSONArray; overload;
function Add(const Element: Double): TJSONArray; overload;
function Add(const Element: Extended): TJSONArray; overload;
function Add(const Element: Currency): 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 unsigned Element)/* overload */;
TJSONArray* __fastcall Add(const __int64 Element)/* overload */;
TJSONArray* __fastcall Add(const unsigned __int64 Element)/* overload */;
TJSONArray* __fastcall Add(const double Element)/* overload */;
TJSONArray* __fastcall Add(const System::Extended Element)/* overload */;
TJSONArray* __fastcall Add(const System::Currency 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.

The supported types for the Element parameter are:

Note: The value given through the Element parameter cannot be null.

See Also