Insert an element in the array.
Source position: fpjson.pp line 578
public procedure TJSONArray.Insert( |
Index: Integer |
); |
Index: Integer; |
Item: TJSONData |
); |
Index: Integer; |
I: Integer |
); |
Index: Integer; |
I: Int64 |
); |
Index: Integer; |
I: QWord |
); |
Index: Integer; |
const S: UnicodeString |
); |
Index: Integer; |
const S: TJSONStringType |
); |
Index: Integer; |
F: TJSONFloat |
); |
Index: Integer; |
B: Boolean |
); |
Index: Integer; |
AnArray: TJSONArray |
); |
Index: Integer; |
AnObject: TJSONObject |
); |
Index |
|
Position at which to insert the new value. |
Index |
|
Position at which to insert the new value. |
Item |
|
JSON Data object to insert. |
Index |
|
Position at which to insert the new value. |
I |
|
Integer value to insert. |
Index |
|
Position at which to insert the new value. |
I |
|
Integer value to insert. |
Index |
|
Position at which to insert the new value. |
I |
|
Integer value to insert. |
Index |
|
Position at which to insert the new value. |
S |
|
String value to insert. |
Index |
|
Position at which to insert the new value. |
S |
|
String value to insert. |
Index |
|
Position at which to insert the new value. |
F |
|
Floating point value to insert. |
Index |
|
Position at which to insert the new value. |
B |
|
Boolean value to insert. |
Index |
|
Position at which to insert the new value. |
AnArray |
|
JSON array to insert. |
Index |
|
Position at which to insert the new value. |
AnObject |
|
JSON Object to insert. |
Insert adds a value or element to the array at position Index. Elements with index equal to or larger than Index are shifted. Like Add, it converts plain pascal values to JSON values.
Note that when inserting a TJSONData instance to the array, it is owned by the array. Index must be a value between 0 and Count-1.
If an invalid index is specified, an exception is raised.
|
Add a JSON value to the array. |
|
|
Delete an element from the list by index. |
|
|
Extract an element from the array. |
|
|
Clear the array. |