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

# NavigationPageListConverter

> Handles JSON conversion for lists of navigation page items that can be either strings or GroupConfig objects.

## Definition

**Assembly:** Mintlify.Core.dll

**Namespace:** Mintlify.Core.Converters

**Inheritance:** System.Text.Json.Serialization.JsonConverter\<System.Collections.Generic.List\<object>>

## Syntax

```csharp theme={"dark"}
Mintlify.Core.Converters.NavigationPageListConverter
```

## Summary

Handles JSON conversion for lists of navigation page items that can be either strings or GroupConfig objects.

## Remarks

This converter uses a static NavigationPageConverter instance for efficient conversion of all items
in the list without creating new converter instances for each item.

## Constructors

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor

#### Syntax

```csharp theme={"dark"}
public NavigationPageListConverter()
```

## Methods

### <Icon icon="code-merge" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Read <Badge color="blue">Override</Badge>

Reads and converts the JSON array to a list of navigation page objects.

#### Syntax

```csharp theme={"dark"}
public override System.Collections.Generic.List<object> Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
```

#### Parameters

| Name            | Type                                     | Description             |
| --------------- | ---------------------------------------- | ----------------------- |
| `reader`        | `System.Text.Json.Utf8JsonReader`        | The JSON reader.        |
| `typeToConvert` | `System.Type`                            | The type to convert to. |
| `options`       | `System.Text.Json.JsonSerializerOptions` | The serializer options. |

#### Returns

Type: `System.Collections.Generic.List<object>`
A list containing string and GroupConfig objects.

#### Exceptions

| Exception       | Description                                     |
| --------------- | ----------------------------------------------- |
| `JsonException` | Thrown when the JSON token is not a StartArray. |

### <Icon icon="code-merge" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Write <Badge color="blue">Override</Badge>

Writes the list of navigation page objects to JSON array.

#### Syntax

```csharp theme={"dark"}
public override void Write(System.Text.Json.Utf8JsonWriter writer, System.Collections.Generic.List<object> value, System.Text.Json.JsonSerializerOptions options)
```

#### Parameters

| Name      | Type                                      | Description                                   |
| --------- | ----------------------------------------- | --------------------------------------------- |
| `writer`  | `System.Text.Json.Utf8JsonWriter`         | The JSON writer.                              |
| `value`   | `System.Collections.Generic.List<object>` | The list of navigation page objects to write. |
| `options` | `System.Text.Json.JsonSerializerOptions`  | The serializer options.                       |
