Unit 'fpjson' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TJSONArray.Add

Add a JSON value to the array.

Declaration

Source position: fpjson.pp line 559

public function TJSONArray.Add(

  Item: TJSONData

):Integer;

function TJSONArray.Add(

  I: Integer

):Integer;

function TJSONArray.Add(

  I: Int64

):Int64;

function TJSONArray.Add(

  I: QWord

):QWord;

function TJSONArray.Add(

  const S: UnicodeString

):Integer;

function TJSONArray.Add(

  const S: TJSONStringType

):Integer;

function TJSONArray.Add: Integer;

function TJSONArray.Add(

  F: TJSONFloat

):Integer;

function TJSONArray.Add(

  B: Boolean

):Integer;

function TJSONArray.Add(

  AnArray: TJSONArray

):Integer;

function TJSONArray.Add(

  AnObject: TJSONObject

):Integer;

Arguments

Item

  

TJSONData instance to add to array.

Function result

TJSONData instance that was added.

Arguments

I

  

Integer value to add to array.

Arguments

I

  

Integer value to add to array.

Arguments

I

  

Integer value to add to array.

Arguments

S

  

String value to add to array.

Arguments

S

  

String value to add to array.

Arguments

F

  

Floating point value to add to array.

Arguments

B

  

Boolean value to array.

Arguments

AnArray

  

JSON Array to add to array.

Arguments

AnObject

  

JSON Object to add to array.

Description

Add adds the value passed on to the array. If it is a plain pascal value, it is converted to an appropriate TJSONData instance. If a TJSONData instance is passed, it is simply added to the array. Note that the instance will be owned by the array, and destroyed when the array is cleared (this is in particular true is an JSON array or object).

The function returns the TJSONData instance that was added to the array.

See also

Delete

  

Delete an element from the list by index.

Extract

  

Extract an element from the array.


Documentation generated on: Nov 22 2024