System.JSON.TJSONArray.TEnumerator.MoveNext

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function MoveNext: Boolean; inline;

C++

bool __fastcall MoveNext();

Properties

Type Visibility Source Unit Parent
function public
System.JSON.pas
System.JSON.hpp
System.JSON TEnumerator

Description

Moves the iterator so that it points to the next after the Current JSON value in the iterated JSON array.

A TJSONArray object gets an iterator calling GetEnumerator. The Current and MoveNext members of the obtained TJSONArrayEnumerator iterator provide iteration through items in the TJSONArray object.

MoveNext returns True, if after the MoveNext execution, Current points to an existing JSON value. MoveNext returns False otherwise, that is, if the iterator is moved after the last item in the iterated TJSONArray object.

The first time that you call MoveNext after you create this iterator, the iterator points to the first item of the array if the array is not empty.

See Also