[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'fpjson' (#fcl)

TJSONObject.Extract

Extract an element from the object

Declaration

Source position: fpjson.pp line 546

public function TJSONObject.Extract(

  Index: Integer

):TJSONData;

function TJSONObject.Extract(

  const AName: string

):TJSONData;

Arguments

Index

  

Index of element to extract

Function result

Element to extract from the object

Arguments

AName

  

Name of element to extract

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

Delete

Clear

Insert

Add


Documentation generated on: Nov 14 2015