JsonFormatter Class
Formats JSON values for human-readable output.
public sealed class JsonFormatter : ValueFormatter- Inheritance
ValueFormatterJsonFormatter
Constructors
| Name | Description |
|---|---|
| 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.csInitializes a new instance of the JsonFormatter class with default options.
public JsonFormatter()JsonFormatter(JsonFormatterOptions?)
JsonFormatter.csInitializes a new instance of the JsonFormatter class with the specified options.
public JsonFormatter(JsonFormatterOptions? options)Parameters
optionsJsonFormatterOptions?- The formatting options.
Methods
| Name | Description |
|---|---|
| Format(HumanReadableTextWriter, string?, HumanReadableSerializerOptions) |
Format(HumanReadableTextWriter, string?, HumanReadableSerializerOptions)
JsonFormatter.cspublic override void Format(HumanReadableTextWriter writer, string? value, HumanReadableSerializerOptions options)Parameters
writerHumanReadableTextWritervaluestring?optionsHumanReadableSerializerOptions
No documentation is available.