JsonCommentHandling JsonCommentHandling JsonCommentHandling JsonCommentHandling Enum

Definition

Defines how the Utf8JsonReader struct handles comments.

public enum class JsonCommentHandling
public enum JsonCommentHandling
type JsonCommentHandling = 
Public Enum JsonCommentHandling
Inheritance
JsonCommentHandlingJsonCommentHandlingJsonCommentHandlingJsonCommentHandling

Fields

Allow Allow Allow Allow 1

Allows comments within the JSON input and treats them as valid tokens. While reading, the caller can to access the comment values.

Disallow Disallow Disallow Disallow 0

Doesn't allow comments within the JSON input. Comments are treated as invalid JSON if found, and a System.Text.Json.JsonReaderException is thrown. This is the default value.

Skip Skip Skip Skip 2

Allows comments within the JSON input and ignores them. The Utf8JsonReader behaves as if no comments are present.

Applies to