# JsonContentTypeHandler.GetJsonSchemaForType

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

## GetJsonSchemaForType(Type) {#Sisk_Documenting_Content_JsonContentTypeHandler_GetJsonSchemaForType_System_Type_}

Generates a JSON schema that describes the specified type.

```csharp
public virtual JsonSchema GetJsonSchemaForType(Type type)
```

### Parameters

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

The [Type](https://learn.microsoft.com/dotnet/api/system.type) for which to generate the schema.

### Returns

 JsonSchema

A `JsonSchema` that represents the structure of `type`.

### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

`type` is [`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null).
