[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Add a JSON value to the array
Source position: fpjson.pp line 497
public function TJSONArray.Add( |
Item: TJSONData |
):Integer; |
I: Integer |
):Integer; |
const S: string |
):Integer; |
F: TJSONFloat |
):Integer; |
B: Boolean |
):Integer; |
AnArray: TJSONArray |
):Integer; |
AnObject: TJSONObject |
):Integer; |
Item |
|
TJSONData instance to add to array. |
TJSONData instance that was added.
I |
|
Integer value to add to array |
S |
|
String value to add to array |
F |
|
Floating point value to add to array |
B |
|
Boolean value to array |
AnArray |
|
JSON Array to add to array. |
AnObject |
|
JSON Object to add to array. |
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.
|
Delete an element from the list by index |
|
|
Extract an element from the array |