System.JSON.Types.TJsonToken

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TJsonToken = (
None,
StartObject,
StartArray,
StartConstructor,
PropertyName,
Comment,
Raw,
Integer,
Float,
&String,
Boolean,
Null,
Undefined,
EndObject,
EndArray,
EndConstructor,
Date,
Bytes,
Oid,
RegEx,
DBRef,
CodeWScope,
MinKey,
MaxKey
);

C++

enum class DECLSPEC_DENUM TJsonToken : unsigned char { None, StartObject, StartArray, StartConstructor, PropertyName, Comment, Raw, Integer, Float, String, Boolean, Null, Undefined, EndObject, EndArray, EndConstructor, Date, Bytes, Oid, RegEx, DBRef, CodeWScope, MinKey, MaxKey };

Properties

Type Visibility Source Unit Parent
enum public
System.JSON.Types.pas
System.JSON.Types.hpp
System.JSON.Types System.JSON.Types

Description

The type of token being read.

TJsonToken enumerates the possible token types that can be read at a given time.

All the possible values of TJsonToken are extended JSON and BSON tokens unless otherwise specified. The possible values are listed in the following table:

Value Meaning

None

There is no token, when nothing has been read.

StartObject

The start of an object {.

StartArray

The start of an array [.

StartConstructor

The start of the instantiation of a JavaScript object; from new until the opening parenthesis (, such as for example new Object(.

PropertyName

The name of a property in an object.

Comment

A comment in the JSON, such as /* ... */

Raw

Raw JSON.

Integer

Integer value.

Float

Float value.

String

String value.

Boolean

Boolean value.

Null

Null value.

Undefined

Undefined value.

EndObject

The end of an object }.

EndArray

The end of an array ].

EndConstructor

The end of the instantiation of a JavaScript object; the closing parenthesis after instantiating a new object ).

Date

TDateTime value.

Bytes

TJsonBinaryType value.

Oid

TJsonOid value.

RegEx

TJsonRegEx value.

DBRef

TJsonDBRef value.

CodeWScope

TJsonCodeWScope value. This is a BSON token without Extended JSON representation.

MinKey

Special type that compares less than all other BSON values and types. See extended JSON MinKey and BSON specifications.

MaxKey

Special type that compares greater than all other BSON values and types. See extended JSON MaxKey and BSON specifications.

See Also