# JsonContentTypeHandler.GetBodyExampleForType

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

## GetBodyExampleForType(Type) {#Sisk_Documenting_Content_JsonContentTypeHandler_GetBodyExampleForType_System_Type_}

Generates a JSON body example for the specified type.

```csharp
public virtual BodyExampleResult? GetBodyExampleForType(Type type)
```

### Parameters

`type` [Type](https://learn.microsoft.com/dotnet/api/system.type)

The type to generate an example for.

### Returns

[BodyExampleResult](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.BodyExampleResult.md)?

A [BodyExampleResult](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.BodyExampleResult.md) containing the JSON example, or [`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) if the type cannot be handled.
