Edit

Share via


JsonTokenType Enum

Definition

Defines the various JSON tokens that make up a JSON text.

public enum class JsonTokenType
public enum JsonTokenType
type JsonTokenType = 
Public Enum JsonTokenType
Inheritance
JsonTokenType

Fields

Comment 6

The token type is a comment string.

EndArray 4

The token type is the end of a JSON array.

EndObject 2

The token type is the end of a JSON object.

False 10

The token type is the JSON literal false.

None 0

There is no value (as distinct from Null). This is the default token type if no data has been read by the Utf8JsonReader.

Null 11

The token type is the JSON literal null.

Number 8

The token type is a JSON number.

PropertyName 5

The token type is a JSON property name.

StartArray 3

The token type is the start of a JSON array.

StartObject 1

The token type is the start of a JSON object.

String 7

The token type is a JSON string.

True 9

The token type is the JSON literal true.

Remarks

For more information, see How to write custom serializers and deserializers with System.Text.Json.

Applies to