Class JsonFormatterOptions
Options for configuring IJson
Inheritance
Namespace: EPiServer.Formatters
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3Syntax
[Options(ConfigurationSection = "Cms")]
public class JsonFormatterOptions : Object
Constructors
JsonFormatterOptions()
Declaration
public JsonFormatterOptions()
Properties
AssemblyModuleInputFormatters
All registered IJson
Declaration
public IDictionary<Assembly, FormatterRegistration> AssemblyModuleInputFormatters { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
The option will not register any model binders for request bodies. One option can be to register a custom Microsoft.
AssemblyModuleOutputFormatters
All registered IJson
Declaration
public IDictionary<Assembly, FormatterRegistration> AssemblyModuleOutputFormatters { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
The option will not register any model binders for request bodies. One option can be to register a custom Microsoft.
FallbackFormatterType
Defines the fallback formatter to use when no assembly or type registration applies
Declaration
public FormatterType FallbackFormatterType { get; set; }
Property Value
Type | Description |
---|---|
Formatter |
Remarks
Default value is Newtonsoft
TypeModuleInputFormatters
All registered IJson
Declaration
public IDictionary<Type, FormatterRegistration> TypeModuleInputFormatters { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
The option will not register any model binders for request bodies. One option can be to register a custom Microsoft.
TypeModuleOutputFormatters
All registered IJson
Declaration
public IDictionary<Type, FormatterRegistration> TypeModuleOutputFormatters { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
The option will not register any model binders for request bodies. One option can be to register a custom Microsoft.