JsonTokenType
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: JsonTokenType.cs
This enum defines the various JSON tokens that make up a JSON text and is used by the Utf8JsonReader when moving from one token to the next. The Utf8JsonReader starts at 'None' by default. The 'Comment' enum value is only ever reached in a specific Utf8JsonReader mode and is not reachable by default.
public enum JsonTokenType : IComparable, ISpanFormattable, IFormattable, IConvertible
Implements
IComparable, ISpanFormattable, IFormattable, IConvertible
Fields
| Field | Type | Description |
|---|---|---|
None static |
JsonTokenType |
Indicates that there is no value (as distinct from Null). |
StartObject static |
JsonTokenType |
Indicates that the token type is the start of a JSON object. |
EndObject static |
JsonTokenType |
Indicates that the token type is the end of a JSON object. |
StartArray static |
JsonTokenType |
Indicates that the token type is the start of a JSON array. |
EndArray static |
JsonTokenType |
Indicates that the token type is the end of a JSON array. |
PropertyName static |
JsonTokenType |
Indicates that the token type is a JSON property name. |
Comment static |
JsonTokenType |
Indicates that the token type is the comment string. |
String static |
JsonTokenType |
Indicates that the token type is a JSON string. |
Number static |
JsonTokenType |
Indicates that the token type is a JSON number. |
True static |
JsonTokenType |
Indicates that the token type is the JSON literal true. |
False static |
JsonTokenType |
Indicates that the token type is the JSON literal false. |
Null static |
JsonTokenType |
Indicates that the token type is the JSON literal null. |
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue