# SiloAddressConverter Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.siloaddressconverter/)

## Read(Utf8JsonReader, Type, JsonSerializerOptions) {#read-ref-system-text-json-utf8jsonreader-system-type-system-text-json-jsonserial-cca93f00}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.siloaddressconverter/methods/read-ref-system-text-json-utf8jsonreader-system-type-system-text-json-jsonserial-cca93f00/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/SiloAddress.cs#L608)

```csharp
public override SiloAddress? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
```

Reads and converts the JSON to type `T`.

### Parameters

- `reader` (`Utf8JsonReader`): The reader.
- `typeToConvert` (`Type`): The type to convert.
- `options` (`JsonSerializerOptions`): An object that specifies serialization options to use.

### Returns

The converted value.

## Write(Utf8JsonWriter, SiloAddress, JsonSerializerOptions) {#write-system-text-json-utf8jsonwriter-orleans-runtime-siloaddress-system-text-js-6e481d3e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.siloaddressconverter/methods/write-system-text-json-utf8jsonwriter-orleans-runtime-siloaddress-system-text-js-6e481d3e/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/SiloAddress.cs#L611)

```csharp
public override void Write(Utf8JsonWriter writer, SiloAddress value, JsonSerializerOptions options)
```

Writes a specified value as JSON.

### Parameters

- `writer` (`Utf8JsonWriter`): The writer to write to.
- `value` (`SiloAddress`): The value to convert to JSON.
- `options` (`JsonSerializerOptions`): An object that specifies serialization options to use.
