Skip to content

TJSONObjectIterator

Iterator callback for TJSONObject.Iterate.

Declaration

Source position: fpjson.pp line 630

type
  TJSONObjectIterator = procedure(const AName: TJSONStringType; 
                                Item: TJSONData; Data: TObject; 
                                var Continue: Boolean) of object;

Arguments

Name Description
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

Name Description
TJSONObject.Iterate Iterate over all elements in the object.