Skip to content

TJSONObject.Extract

Extract an element from the object.

Declaration

Source position: fpjson.pp line 763

public 
function Extract(Index: Integer) : TJSONData;

function Extract(const AName: string) : TJSONData;

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

Name Description
Delete
Clear
Insert
Add