# SerializationHostingExtensions.AddNewtonsoftJsonSerializer(ISerializerBuilder, Func&lt;Type, bool&gt;, JsonSerializerSettings?)

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

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Serialization.NewtonsoftJson/SerializationHostingExtensions.cs#L28-L36)

```csharp
public static ISerializerBuilder AddNewtonsoftJsonSerializer(this ISerializerBuilder serializerBuilder, Func<Type, bool>? isSupported, JsonSerializerSettings? jsonSerializerSettings = null)
```

Adds support for serializing and deserializing values using `Newtonsoft.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.
- `jsonSerializerSettings` (`JsonSerializerSettings?`): The JSON serializer settings.
