System.JSON.Readers.TJsonReader.ReadAsString
Delphi
function ReadAsString: string; virtual;
C++
virtual System::UnicodeString __fastcall ReadAsString();
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 a String value.
Instead of Read, you may alternatively use a different reading method if you can anticipate the type of the next token.
ReadAsString function reads the next token and returns a String value. ReadAsString calls ReadAsStringInternal.
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.