System.JSON.Readers.TJsonReader.IsPrimitiveToken
Delphi
class function IsPrimitiveToken(Token: TJsonToken): Boolean;
C++
__classmethod bool __fastcall IsPrimitiveToken(System::Json::Types::TJsonToken Token);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.JSON.Readers.pas System.JSON.Readers.hpp |
System.JSON.Readers | TJsonReader |
Description
Returns True
if the specified JSON token is a primitive token. It returns False
otherwise.
The following table shows the return value of IsPrimitiveToken depending on the input JSON token:
JSON Token | Return Value |
---|---|
Boolean
|
True
|
Bytes
|
True
|
CodeWScope
|
True
|
Comment
|
False
|
DBRef
|
True
|
Date
|
True
|
EndArray
|
False
|
EndConstructor
|
False
|
EndObject
|
False
|
Float
|
True
|
Integer
|
True
|
MaxKey
|
True
|
MinKey
|
True
|
None
|
False
|
Null
|
True
|
Oid
|
True
|
PropertyName
|
False
|
Raw
|
False
|
RegEx
|
True
|
StartArray
|
False
|
StartConstructor
|
False
|
StartObject
|
False
|
String
|
True
|
Undefined
|
True
|