# JsonContentTypeHandler

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

Provides JSON example generation for types used in documentation.

```csharp
public class JsonContentTypeHandler : IExampleBodyTypeHandler, IExampleParameterTypeHandler, IContentSchemaTypeHandler
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← 
[JsonContentTypeHandler](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.JsonContentTypeHandler.md)

#### Implements

[IExampleBodyTypeHandler](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.IExampleBodyTypeHandler.md), 
[IExampleParameterTypeHandler](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.IExampleParameterTypeHandler.md), 
[IContentSchemaTypeHandler](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.IContentSchemaTypeHandler.md)

#### Inherited Members

[object.GetType\(\)](https://learn.microsoft.com/dotnet/api/system.object.gettype), 
[object.MemberwiseClone\(\)](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), 
[object.ToString\(\)](https://learn.microsoft.com/dotnet/api/system.object.tostring), 
[object.Equals\(object?\)](https://learn.microsoft.com/dotnet/api/system.object.equals\#system\-object\-equals\(system\-object\)), 
[object.Equals\(object?, object?\)](https://learn.microsoft.com/dotnet/api/system.object.equals\#system\-object\-equals\(system\-object\-system\-object\)), 
[object.ReferenceEquals\(object?, object?\)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), 
[object.GetHashCode\(\)](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)

## Constructors

| Name | Description |
| --- | --- |
| [JsonContentTypeHandler\(IJsonTypeInfoResolver, JsonSerializerOptions\)](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.JsonContentTypeHandler.-ctor.md#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. |
| [JsonContentTypeHandler\(JsonSerializerOptions\)](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.JsonContentTypeHandler.-ctor.md#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. |
| [JsonContentTypeHandler\(\)](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.JsonContentTypeHandler.-ctor.md#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. |

## Properties

| Name | Description |
| --- | --- |
| [EnumerationExampleCount](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.JsonContentTypeHandler.EnumerationExampleCount.md#Sisk_Documenting_Content_JsonContentTypeHandler_EnumerationExampleCount) | Gets or sets the number of items to include when generating examples for enumerable types. |
| [IncludeDescriptionAnnotations](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.JsonContentTypeHandler.IncludeDescriptionAnnotations.md#Sisk_Documenting_Content_JsonContentTypeHandler_IncludeDescriptionAnnotations) | Gets or sets a value indicating whether to include XML documentation comments in the generated examples. |
| [Shared](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.JsonContentTypeHandler.Shared.md#Sisk_Documenting_Content_JsonContentTypeHandler_Shared) | Gets the shared singleton instance of [JsonContentTypeHandler](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.JsonContentTypeHandler.md). |

## Methods

| Name | Description |
| --- | --- |
| [GetBodyExampleForType\(Type\)](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.JsonContentTypeHandler.GetBodyExampleForType.md#Sisk_Documenting_Content_JsonContentTypeHandler_GetBodyExampleForType_System_Type_) | Generates a JSON body example for the specified type. |
| [GetJsonSchemaForType\(Type\)](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.JsonContentTypeHandler.GetJsonSchemaForType.md#Sisk_Documenting_Content_JsonContentTypeHandler_GetJsonSchemaForType_System_Type_) | Generates a JSON schema that describes the specified type. |
| [GetParameterExamplesForType\(Type\)](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.JsonContentTypeHandler.GetParameterExamplesForType.md#Sisk_Documenting_Content_JsonContentTypeHandler_GetParameterExamplesForType_System_Type_) | Generates parameter examples for the specified type. |
