System.JSON.Builders.TJSONIterator.Iterate

From RAD Studio API Documentation
Jump to: navigation, search

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 returns True, the method continues iterating through JSON items.
  • When AFunc returns False, the method immediately stops the iteration process.


See Also

Sample Projects