Definition
Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Converters Inheritance: System.Text.Json.Serialization.JsonConverter<object>Syntax
Summary
Handles JSON conversion for navigation page items that can be either strings or GroupConfig objects.Remarks
This converter is used for polymorphic navigation page properties in Mintlify configuration objects. It properly deserializes JSON into strongly-typed objects instead of JsonElement instances.Constructors
.ctor
Syntax
Methods
CanConvert Override
Determines whether the specified type can be converted by this converter.Syntax
Parameters
Returns
Type:bool
True if the type is object; otherwise, false.
Read Override
Reads and converts the JSON to a navigation page object.Syntax
Parameters
Returns
Type:object?
A string for page paths or a GroupConfig for nested navigation groups.