System.JSON.Readers.TJsonReader.ReadAsInteger
Delphi
function ReadAsInteger: Integer; virtual;
C++
virtual int __fastcall ReadAsInteger(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.JSON.Readers.pas System.JSON.Readers.hpp |
System.JSON.Readers | TJsonReader |
Description
Reads the next JSON token and interprets it as an Integer value.
Instead of Read, you may alternatively use a different reading method if you can anticipate the type of the next token.
ReadAsInteger function reads the next token and returns an Integer value. ReadAsInteger calls ReadAsIntegerInternal.
If the token cannot be interpreted as the expected type, an exception raises and provides the path to the token, the number of the line and the position within that line.