NewtonsoftJsonInputFormatter.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 deserialization to get the Newtonsoft.Json.JsonSerializer. The formatter context that is passed gives an ability to create serializer specific to the context. |
CreateJsonSerializer(InputFormatterContext) |
Called during deserialization to get the Newtonsoft.Json.JsonSerializer. The formatter context that is passed gives an ability to create serializer specific to the context. |
CreateJsonSerializer()
Called during deserialization to get 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 deserialization.
Remarks
This method works in tandem with ReleaseJsonSerializer(JsonSerializer) to manage the lifetimes of Newtonsoft.Json.JsonSerializer instances.
Applies to
CreateJsonSerializer(InputFormatterContext)
Called during deserialization to get 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::InputFormatterContext ^ context);
protected virtual Newtonsoft.Json.JsonSerializer CreateJsonSerializer (Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context);
abstract member CreateJsonSerializer : Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext -> Newtonsoft.Json.JsonSerializer
override this.CreateJsonSerializer : Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext -> Newtonsoft.Json.JsonSerializer
Protected Overridable Function CreateJsonSerializer (context As InputFormatterContext) As JsonSerializer
Parameters
- context
- InputFormatterContext
A context object used by an input formatter for deserializing the request body into an object.
Returns
The Newtonsoft.Json.JsonSerializer used during deserialization.
Remarks
This method works in tandem with ReleaseJsonSerializer(JsonSerializer) to manage the lifetimes of Newtonsoft.Json.JsonSerializer instances.