System.JSON.Readers.TJsonReader.TReadType
Delphi
TReadType = (Read, ReadAsInteger, ReadAsBytes, ReadAsString, ReadAsDouble,
ReadAsDateTime, ReadAsOid);
C++
enum class DECLSPEC_DENUM TReadType : unsigned char { Read, ReadAsInteger, ReadAsBytes, ReadAsString, ReadAsDouble, ReadAsDateTime, ReadAsOid };
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
enum | public | System.JSON.Readers.pas System.JSON.Readers.hpp |
System.JSON.Readers | TJsonReader |
Description
Enum type that defines how to evaluate the JSON content.
Calling a specific reading method sets TReadType to the corresponding type, for example, Read sets TReadType to Read
.
The parsing methods evaluate TReadType to read the content in different ways.
The different types define how the reader evaluates the content, for example, ReadAsInteger
means that the reader interprets the JSON token as an Integer value.
ReadAsOid
is used when reading BSON content.