Sign in Join
FPDoc Onlineexperiment

TJSONArray.Extract function

Member of TJSONArraypublicIn unit fpJson

Extract an element from the array.

Declaration

pascal
function Extract(Item: TJSONData): TJSONData
function Extract(Index: Integer): TJSONData

Arguments

Item

Item to extract from the array.

Index

Index of item to extract from the array.

Function result

Extracted element.

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.