JsonOutputFormatter Class¶
Syntax¶
public class JsonOutputFormatter : OutputFormatter, IApiResponseFormatMetadataProvider, IJsonOutputFormatter, IOutputFormatter
Constructors¶
-
Microsoft.AspNet.Mvc.JsonOutputFormatter.JsonOutputFormatter()
public JsonOutputFormatter()
-
JsonOutputFormatter
(JsonSerializerSettings)¶ Arguments: - serializerSettings (JsonSerializerSettings) –
public JsonOutputFormatter(JsonSerializerSettings serializerSettings)
-
Properties¶
-
SerializerSettings
()¶ Gets or sets the @!:JsonSerializerSettings- used to configure the @!:JsonSerializer-.
Return type: JsonSerializerSettings public JsonSerializerSettings SerializerSettings { get; set; }
-
Methods¶
-
WriteObject
(System.IO.TextWriter, System.Object)¶ Arguments: - writer (System.IO.TextWriter) –
- value (System.Object) –
public void WriteObject(TextWriter writer, object value)
-
WriteResponseBodyAsync
(Microsoft.AspNet.Mvc.OutputFormatterContext)¶ Arguments: - context (Microsoft.AspNet.Mvc.OutputFormatterContext) –
Return type: System.Threading.Tasks.Task
public override Task WriteResponseBodyAsync(OutputFormatterContext context)
-