System.JSON.Builders.TJSONIterator.Iterate
Delphi
procedure Iterate(AFunc: TIterateFunc);
C++
void __fastcall Iterate(_di_TIterateFunc AFunc);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.JSON.Builders.pas System.JSON.Builders.hpp |
System.JSON.Builders | TJSONIterator |
Description
Iterates through all JSON items and calls the specified function for each item.
Iterates through all JSON items and calls the AFunc
function for each item.
AFunc
gets a reference to an iterator that points to a current JSON item. The Iterate method works as follows:
- When
AFunc
returnsTrue
, the method continues iterating through JSON items. - When
AFunc
returnsFalse
, the method immediately stops the iteration process.