Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Class

JsonSerializerOptions

class JsonSerializerOptions

Module: System.Data.Json
Assembly: System.Data.dll
Source file: JsonSerializerOptions.rvn

Inheritance: Object → JsonSerializerOptions

Controls JSON output formatting.

Remarks

Options are read at the start of serialization. Indentation uses two spaces and LF newlines on every platform. Existing document quotas include formatting whitespace.

Constructors

1 item
JsonSerializerOptions() Creates compact-output formatting options.

Properties

1 item
WriteIndented: bool Gets or sets whether to indent nested containers. The default is false (compact JSON).

Methods

4 items
Equals(other: object?) -> bool Tests reference identity by default; an ordinary class may override equality. Inherited from Object.Equals
GetHashCode() -> int Returns a stable identity hash by default; an ordinary class may override it consistently with equality. Inherited from Object.GetHashCode
GetType() -> TypeInfo Returns metadata for the concrete runtime type of this instance. Inherited from Object.GetType
ToString() -> string Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override. Inherited from Object.ToString