> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# OneOrManyConverter

> Reads a key that holds one string or a list of strings, and writes it as a list.

```csharp
public sealed class OneOrManyConverter : JsonConverter<IList<string>>
```

**Extends:** `JsonConverter<IList<string>>`

## Constructors

```csharp
public OneOrManyConverter()
```

## Methods

### Read()

```csharp
public override IList<string> Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
```

#### Parameters

**reader** `Utf8JsonReader` *required*

**typeToConvert** `Type` *required*

**options** `JsonSerializerOptions` *required*

#### Returns

`IList<string>`

### Write()

```csharp
public override void Write(Utf8JsonWriter writer, IList<string> value, JsonSerializerOptions options)
```

#### Parameters

**writer** `Utf8JsonWriter` *required*

**value** `IList\<string\>` *required*

**options** `JsonSerializerOptions` *required*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.