System.JSON.Readers.TJsonReader.Read

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Read: Boolean; virtual;

C++

virtual bool __fastcall Read();

Properties

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

Description

The first call moves the reader to the first JSON token of the input data. Successive calls move the reader to the next JSON token of the input data. It returns False if the JSON token where the reader moves is the last JSON token of the input data, or True if the input data contains more tokens.

To read JSON data, you usually call Read in a loop until it returns False, and read data from the properties of the reader after every call.

Read calls ReadInternal.

See Also