JsonTokenType 枚举

定义

定义组成 JSON 文本的各种 JSON 令牌。Defines the various JSON tokens that make up a JSON text.

public enum class JsonTokenType
public enum JsonTokenType
type JsonTokenType = 
Public Enum JsonTokenType
继承
JsonTokenType

字段

Comment 6

令牌类型为注释字符串。The token type is a comment string.

EndArray 4

令牌类型是 JSON 数组的结尾。The token type is the end of a JSON array.

EndObject 2

令牌类型是 JSON 对象的结尾。The token type is the end of a JSON object.

False 10

令牌类型是 JSON 文本 falseThe token type is the JSON literal false.

None 0

没有值(不同于 Null)。There is no value (as distinct from Null). 如果没有数据由 Utf8JsonReader 读取,则这是默认标记类型。This is the default token type if no data has been read by the Utf8JsonReader.

Null 11

令牌类型是 JSON 文本 nullThe token type is the JSON literal null.

Number 8

令牌类型是 JSON 数字。The token type is a JSON number.

PropertyName 5

令牌类型是 JSON 属性名称。The token type is a JSON property name.

StartArray 3

令牌类型是 JSON 数组的开头。The token type is the start of a JSON array.

StartObject 1

令牌类型是 JSON 对象的开头。The token type is the start of a JSON object.

String 7

令牌类型是 JSON 字符串。The token type is a JSON string.

True 9

令牌类型是 JSON 文本 trueThe token type is the JSON literal true.

注解

有关详细信息,请参阅 如何在上编写自定义序列化程序和反 System.Text.JsFor more information, see How to write custom serializers and deserializers with System.Text.Json.

适用于