# OrleansJsonSerializerSettings Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.serialization.orleansjsonserializersettings/)

## GetDefaultSerializerSettings(IServiceProvider) {#getdefaultserializersettings-system-iserviceprovider-5b380452}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.serialization.orleansjsonserializersettings/methods/getdefaultserializersettings-system-iserviceprovider-5b380452/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Serialization/OrleansJsonSerializerSettings.cs#L37-L39)

```csharp
public static JsonSerializerSettings GetDefaultSerializerSettings(IServiceProvider services)
```

Returns the default serializer settings.

### Parameters

- `services` (`IServiceProvider`): The service provider.

### Returns

The default serializer settings.

## UpdateSerializerSettings(JsonSerializerSettings, bool, bool, TypeNameHandling?) {#updateserializersettings-newtonsoft-json-jsonserializersettings-bool-bool-newton-700e2f6a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.serialization.orleansjsonserializersettings/methods/updateserializersettings-newtonsoft-json-jsonserializersettings-bool-bool-newton-700e2f6a/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Serialization/OrleansJsonSerializerSettings.cs#L70-L85)

```csharp
public static JsonSerializerSettings UpdateSerializerSettings(JsonSerializerSettings settings, bool useFullAssemblyNames, bool indentJson, TypeNameHandling? typeNameHandling)
```

Updates the provided serializer settings with the specified options.

### Parameters

- `settings` (`JsonSerializerSettings`): The settings.
- `useFullAssemblyNames` (`bool`): if set to `true`, use full assembly-qualified names when formatting type names.
- `indentJson` (`bool`): if set to `true`, indent the formatted JSON.
- `typeNameHandling` (`TypeNameHandling?`): The type name handling options.

### Returns

The provided serializer settings.
