# 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/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Serialization.SystemTextJson/SerializationHostingExtensions.cs#L28-L37)

```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.
