# JsonContentTypeHandler constructor

Kind: Constructor  
Namespace: `Sisk.Documenting.Content`  
Assembly: `Sisk.Documenting.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.Documenting.Content.JsonContentTypeHandler.-ctor.html

## JsonContentTypeHandler(IJsonTypeInfoResolver, JsonSerializerOptions) {#Sisk_Documenting_Content_JsonContentTypeHandler__ctor_System_Text_Json_Serialization_Metadata_IJsonTypeInfoResolver_System_Text_Json_JsonSerializerOptions_}

Initializes a new instance of the [JsonContentTypeHandler](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.JsonContentTypeHandler.md) class with the specified type resolver and serializer options.

```csharp
public JsonContentTypeHandler(IJsonTypeInfoResolver typeResolver, JsonSerializerOptions serializerOptions)
```

### Parameters

`typeResolver` [IJsonTypeInfoResolver](https://learn.microsoft.com/dotnet/api/system.text.json.serialization.metadata.ijsontypeinforesolver)

The JSON type info resolver.

`serializerOptions` [JsonSerializerOptions](https://learn.microsoft.com/dotnet/api/system.text.json.jsonserializeroptions)

The JSON serializer options.

## JsonContentTypeHandler(JsonSerializerOptions) {#Sisk_Documenting_Content_JsonContentTypeHandler__ctor_System_Text_Json_JsonSerializerOptions_}

Initializes a new instance of the [JsonContentTypeHandler](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.JsonContentTypeHandler.md) class with the specified serializer options and a default type resolver.

```csharp
[RequiresDynamicCode("This method calls the JsonSerializerOptions.Default, which requires dynamic code.")]
[RequiresUnreferencedCode("This method calls the JsonSerializerOptions.Default, which requires unreferenced code.")]
public JsonContentTypeHandler(JsonSerializerOptions serializerOptions)
```

### Parameters

`serializerOptions` [JsonSerializerOptions](https://learn.microsoft.com/dotnet/api/system.text.json.jsonserializeroptions)

The JSON serializer options.

## JsonContentTypeHandler() {#Sisk_Documenting_Content_JsonContentTypeHandler__ctor}

Initializes a new instance of the [JsonContentTypeHandler](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.JsonContentTypeHandler.md) class with default serializer options and type resolver.

```csharp
[RequiresDynamicCode("This method calls the JsonSerializerOptions.Default, which requires dynamic code.")]
[RequiresUnreferencedCode("This method calls the JsonSerializerOptions.Default, which requires unreferenced code.")]
public JsonContentTypeHandler()
```
