JsonFormatterOptions Class

Provides options for formatting JSON.

public sealed class JsonFormatterOptions : IEquatable<JsonFormatterOptions>
Implements

Constructors

NameDescription
JsonFormatterOptions()

JsonFormatterOptions()

JsonFormatterOptions.cs
public JsonFormatterOptions()

No documentation is available.

Properties

NameDescription
FormatAsStandardObjectGets or sets whether to format JSON as a standard object in the output.
OrderPropertiesGets or sets whether to order properties alphabetically.
WriteIndentedGets or sets whether to write indented JSON.

FormatAsStandardObject

JsonFormatterOptions.cs

Gets or sets whether to format JSON as a standard object in the output.

public bool FormatAsStandardObject { get; set; }

Property value

bool

Gets or sets whether to order properties alphabetically.

public bool OrderProperties { get; set; }

Property value

bool

Gets or sets whether to write indented JSON.

public bool WriteIndented { get; set; }

Property value

bool

Methods

NameDescription
Equals(JsonFormatterOptions?)
Equals(object?)
GetHashCode()
ToString()

Equals overloads

Equals(JsonFormatterOptions?)

public bool Equals(JsonFormatterOptions? other)
Parameters
other JsonFormatterOptions?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(JsonFormatterOptions?, JsonFormatterOptions?)
operator !=(JsonFormatterOptions?, JsonFormatterOptions?)

operator ==(JsonFormatterOptions?, JsonFormatterOptions?)

public static bool operator ==(JsonFormatterOptions? left, JsonFormatterOptions? right)

No documentation is available.

operator !=(JsonFormatterOptions?, JsonFormatterOptions?)

public static bool operator !=(JsonFormatterOptions? left, JsonFormatterOptions? right)

No documentation is available.