System.JSON.Builders.TJSONIterator.Next
Delphi
function Next(const AKey: String = ''): Boolean;
C++
bool __fastcall Next(const System::UnicodeString AKey = System::UnicodeString());
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.JSON.Builders.pas System.JSON.Builders.hpp |
System.JSON.Builders | TJSONIterator |
Description
The first call moves the iterator to the first JSON token of the input data. Successive calls move the iterator to the next JSON token of the input data. It returns False
if the JSON token where the iterator moves is the last JSON token of the input data, or True
if the input data contains more tokens.
To iterate through JSON data, you usually call Next in a loop until it returns False
, and read data from the properties of the iterator after every call.
You may specify a key, either an array index number or an object key name, to iterate until you reach a JSON token that matches the specified key.