Sign in Join
FPDoc Onlineexperiment

TJSONObject.Extract function

Member of TJSONObjectpublicIn unit fpJson

Extract an element from the object.

Declaration

pascal
function Extract(Index: Integer): TJSONData
function Extract(const AName: string): TJSONData

Arguments

Index

Index of element to extract.

AName

Name of element to extract.

Function result

Element to extract from the object.

Description

Extract removes the element at position Index or with the AName from the list, just as Delete does. In difference with Delete, it does not free the object instance. Instead, it returns the extracted element. The result is Nil if a non-existing name is specified.

See also

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