[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'fpjson' (#fcl)

TJSONArray.Add

Add a JSON value to the array

Declaration

Source position: fpjson.pp line 404

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: string

):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

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

Extract


Documentation generated on: Nov 14 2015