NewtonsoftJsonInputFormatter.CreateJsonSerializer Method

Definition

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()

Source:
NewtonsoftJsonInputFormatter.cs
Source:
NewtonsoftJsonInputFormatter.cs
Source:
NewtonsoftJsonInputFormatter.cs
Source:
NewtonsoftJsonInputFormatter.cs
Source:
NewtonsoftJsonInputFormatter.cs
Source:
NewtonsoftJsonInputFormatter.cs

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

Newtonsoft.Json.JsonSerializer

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)

Source:
NewtonsoftJsonInputFormatter.cs
Source:
NewtonsoftJsonInputFormatter.cs
Source:
NewtonsoftJsonInputFormatter.cs
Source:
NewtonsoftJsonInputFormatter.cs
Source:
NewtonsoftJsonInputFormatter.cs
Source:
NewtonsoftJsonInputFormatter.cs

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

Newtonsoft.Json.JsonSerializer

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