Skip to content

TJSONArray.Extract

Extract an element from the array.

Declaration

Source position: fpjson.pp line 588

public 
function Extract(Item: TJSONData) : TJSONData;

function Extract(Index: Integer) : TJSONData;

Description

Extract removes the element at position Index or the indicated element from the list, just as Delete does. In difference with Delete, it does not free the object instance. Instead, it returns the extracted element.

See also

Name Description
Delete Delete an element from the list by index.
Clear Clear the array.
Insert Insert an element in the array.
Add Add a JSON value to the array.