File: src\libraries\System.Text.Json\Common\JsonUnknownTypeHandling.cs
Web Access
Project: src\src\libraries\System.Text.Json\gen\System.Text.Json.SourceGeneration.Roslyn3.11.csproj (System.Text.Json.SourceGeneration)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.Text.Json.Serialization
{
    /// <summary>
    /// Defines how deserializing a type declared as an <see cref="object"/> is handled during deserialization.
    /// </summary>
    public enum JsonUnknownTypeHandling
    {
        /// <summary>
        /// A type declared as <see cref="object"/> is deserialized as a <see cref="JsonElement"/>.
        /// </summary>
        JsonElement = 0,
        /// <summary>
        /// A type declared as <see cref="object"/> is deserialized as a <see cref="JsonNode"/>.
        /// </summary>
        JsonNode = 1
    }
}