Skip to content

JsonReaderOptions.CommentHandling Property

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonReaderOptions.cs

CommentHandling()

Defines how the Utf8JsonReader should handle comments when reading through the JSON.

public JsonCommentHandling CommentHandling { get; set; }

Returns

JsonCommentHandling

Exceptions

Exception Description
ArgumentOutOfRangeException Thrown when the comment handling enum is set to a value that is not supported (i.e. not within the JsonCommentHandling enum range).

Remarks

By default a JsonException is thrown if a comment is encountered.

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