# NewtonsoftJsonCodec.NewtonsoftJsonCodec(IEnumerable&lt;ICodecSelector&gt;, IEnumerable&lt;ICopierSelector&gt;, IOptions&lt;NewtonsoftJsonCodecOptions&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization.newtonsoftjson/orleans.serialization.newtonsoftjsoncodec/) | [Constructors](/orleans/docs/api/csharp/microsoft.orleans.serialization.newtonsoftjson/orleans.serialization.newtonsoftjsoncodec/constructors/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization.NewtonsoftJson/NewtonsoftJsonCodec.cs#L41-L50)

```csharp
public NewtonsoftJsonCodec(IEnumerable<ICodecSelector> serializableTypeSelectors, IEnumerable<ICopierSelector> copyableTypeSelectors, IOptions<NewtonsoftJsonCodecOptions> options)
```

Initializes a new instance of the [NewtonsoftJsonCodec](/orleans/docs/api/csharp/microsoft.orleans.serialization.newtonsoftjson/orleans.serialization.newtonsoftjsoncodec/) class.

### Parameters

- `serializableTypeSelectors` (`IEnumerable<ICodecSelector>`): Filters used to indicate which types should be serialized by this codec.
- `copyableTypeSelectors` (`IEnumerable<ICopierSelector>`): Filters used to indicate which types should be copied by this codec.
- `options` (`IOptions<NewtonsoftJsonCodecOptions>`): The JSON codec options.
