JsonFormatter Class

Formats JSON values for human-readable output.

public sealed class JsonFormatter : ValueFormatter
Inheritance
ValueFormatter JsonFormatter

Constructors

NameDescription
JsonFormatter()Initializes a new instance of the JsonFormatter class with default options.
JsonFormatter(JsonFormatterOptions?)Initializes a new instance of the JsonFormatter class with the specified options.

JsonFormatter overloads

JsonFormatter()

JsonFormatter.cs

Initializes a new instance of the JsonFormatter class with default options.

public JsonFormatter()

JsonFormatter(JsonFormatterOptions?)

JsonFormatter.cs

Initializes a new instance of the JsonFormatter class with the specified options.

public JsonFormatter(JsonFormatterOptions? options)
Parameters
options JsonFormatterOptions?
The formatting options.

Methods

NameDescription
Format(HumanReadableTextWriter, string?, HumanReadableSerializerOptions)

Format(HumanReadableTextWriter, string?, HumanReadableSerializerOptions)

JsonFormatter.cs
public override void Format(HumanReadableTextWriter writer, string? value, HumanReadableSerializerOptions options)

No documentation is available.