Unit 'fpjson' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TJSONObjectIterator

Iterator callback for TJSONObject.Iterate.

Declaration

Source position: fpjson.pp line 618

type TJSONObjectIterator = procedure(

  const AName: TJSONStringType;

  Item: TJSONData;

  Data: TObject;

  var Continue: Boolean

) of object;

Arguments

AName

  

Name (key) of the current item in the object.

Item

  

Current item.

Data

  

Data passed on to Iterate call.

Continue

  

Set to false to stop the iteration.

Description

TJSONObjectIterator is the procedural callback used by TJSONObject.Iterate to iterate over the values. Item is the current item in the iteration, and AName it's name. Data is the data passed on when calling Iterate. The Continue parameter can be set to false to stop the iteration loop.

See also

TJSONObject.Iterate

  

Iterate over all elements in the object.


Documentation generated on: Nov 22 2024