# SerializationHostingExtensions.AddJsonSerializer(ISerializerBuilder, Func&lt;Type, bool&gt;, JsonSerializerOptions)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization.systemtextjson/orleans.serialization.serializationhostingextensions/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization.systemtextjson/orleans.serialization.serializationhostingextensions/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization.SystemTextJson/SerializationHostingExtensions.cs#L29-L38)

```csharp
public static ISerializerBuilder AddJsonSerializer(this ISerializerBuilder serializerBuilder, Func<Type, bool> isSupported, JsonSerializerOptions jsonSerializerOptions = null)
```

Adds support for serializing and deserializing values using `System.Text.Json.JsonSerializer`.

### Parameters

- `serializerBuilder` (`ISerializerBuilder`): The serializer builder.
- `isSupported` (`Func<Type, bool>`): A delegate used to indicate which types should be serialized and copied by this codec.
- `jsonSerializerOptions` (`JsonSerializerOptions`): The JSON serializer options.
