docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IJsonDeserializationContext

    The IJsonDeserializationContext provides an untyped context for contravariant serialization adapters.

    Namespace: Unity.Serialization.Json
    Assembly: Unity.Serialization.dll
    Syntax
    public interface IJsonDeserializationContext

    Properties

    SerializedValue

    Gets the serialized view for value being deserialized.

    Declaration
    SerializedValueView SerializedValue { get; }
    Property Value
    Type Description
    SerializedValueView

    Methods

    ContinueVisitation()

    Continues de-serialization for the current value. This will run the next adapter in the sequence, or the default behaviour.

    Declaration
    object ContinueVisitation()
    Returns
    Type Description
    object

    The deserialized value.

    ContinueVisitationWithoutAdapters()

    Continues de-serialization for the current type without running any more adapters. This will perform the default behaviour.

    Declaration
    object ContinueVisitationWithoutAdapters()
    Returns
    Type Description
    object

    The deserialized value.

    DeserializeValue<T>(SerializedValueView)

    Reads the given value type from the stream.

    Declaration
    T DeserializeValue<T>(SerializedValueView view)
    Parameters
    Type Name Description
    SerializedValueView view

    The view containing the serialized data.

    Returns
    Type Description
    T

    The deserialized value.

    Type Parameters
    Name Description
    T

    The value type to deserialize.

    GetInstance()

    Gets the existing instance if overwriting; otherwise default.

    Declaration
    object GetInstance()
    Returns
    Type Description
    object

    The existing instance being deserialized in to, or default.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)