NewtonsoftJsonOutputFormatter.CreateJsonSerializer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateJsonSerializer() |
Called during serialization to create the Newtonsoft.Json.JsonSerializer.The formatter context that is passed gives an ability to create serializer specific to the context. |
CreateJsonSerializer(OutputFormatterWriteContext) |
Called during serialization to create the Newtonsoft.Json.JsonSerializer.The formatter context that is passed gives an ability to create serializer specific to the context. |
CreateJsonSerializer()
Called during serialization to create the Newtonsoft.Json.JsonSerializer.The formatter context that is passed gives an ability to create serializer specific to the context.
protected:
virtual Newtonsoft::Json::JsonSerializer ^ CreateJsonSerializer();
protected virtual Newtonsoft.Json.JsonSerializer CreateJsonSerializer ();
abstract member CreateJsonSerializer : unit -> Newtonsoft.Json.JsonSerializer
override this.CreateJsonSerializer : unit -> Newtonsoft.Json.JsonSerializer
Protected Overridable Function CreateJsonSerializer () As JsonSerializer
Returns
The Newtonsoft.Json.JsonSerializer used during serialization and deserialization.
Applies to
CreateJsonSerializer(OutputFormatterWriteContext)
Called during serialization to create the Newtonsoft.Json.JsonSerializer.The formatter context that is passed gives an ability to create serializer specific to the context.
protected:
virtual Newtonsoft::Json::JsonSerializer ^ CreateJsonSerializer(Microsoft::AspNetCore::Mvc::Formatters::OutputFormatterWriteContext ^ context);
protected virtual Newtonsoft.Json.JsonSerializer CreateJsonSerializer (Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context);
abstract member CreateJsonSerializer : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext -> Newtonsoft.Json.JsonSerializer
override this.CreateJsonSerializer : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext -> Newtonsoft.Json.JsonSerializer
Protected Overridable Function CreateJsonSerializer (context As OutputFormatterWriteContext) As JsonSerializer
Parameters
- context
- OutputFormatterWriteContext
A context object for WriteAsync(OutputFormatterWriteContext).
Returns
The Newtonsoft.Json.JsonSerializer used during serialization and deserialization.