Table of Contents

Class JsonSerializationOutputFormatter

Namespace
Cuemon.Extensions.AspNetCore.Mvc.Formatters.Newtonsoft.Json
Assembly
Cuemon.Extensions.AspNetCore.Mvc.Formatters.Newtonsoft.Json.dll

This class handles serialization of objects to JSON using NewtonsoftJsonFormatter.

public class JsonSerializationOutputFormatter : StreamOutputFormatter<NewtonsoftJsonFormatter, NewtonsoftJsonFormatterOptions>, IOutputFormatter, IApiResponseTypeMetadataProvider, IConfigurable<NewtonsoftJsonFormatterOptions>
Inheritance
Object
OutputFormatter
TextOutputFormatter
JsonSerializationOutputFormatter
Implements
IOutputFormatter
IApiResponseTypeMetadataProvider
Inherited Members
TextOutputFormatter.SelectCharacterEncoding(OutputFormatterWriteContext)
TextOutputFormatter.WriteAsync(OutputFormatterWriteContext)
TextOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext)
TextOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding)
TextOutputFormatter.SupportedEncodings
OutputFormatter.CanWriteType(Type)
OutputFormatter.GetSupportedContentTypes(String, Type)
OutputFormatter.CanWriteResult(OutputFormatterCanWriteContext)
OutputFormatter.WriteResponseHeaders(OutputFormatterWriteContext)
OutputFormatter.SupportedMediaTypes

Constructors

JsonSerializationOutputFormatter(NewtonsoftJsonFormatterOptions)

Initializes a new instance of the JsonSerializationOutputFormatter class.

public JsonSerializationOutputFormatter(NewtonsoftJsonFormatterOptions options)

Parameters

options NewtonsoftJsonFormatterOptions

The NewtonsoftJsonFormatterOptions which need to be configured.