# 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/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization.NewtonsoftJson/SerializationHostingExtensions.cs#L29-L37)

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