docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Namespace Unity.Serialization.Json

    Classes

    InvalidJsonException

    The exception that is thrown when json input is invalid.

    JsonArray

    The default object output by JsonSerialization if an array type can not be resolved.

    JsonObject

    The default object output by JsonSerialization if an object type can not be resolved.

    JsonSerialization

    High level API for serializing or deserializing json data from string, file or stream.

    Structs

    DeserializationEvent

    Structure to events that occur during deserialization.

    DeserializationResult

    Object containing the results of a deserialization. Use this to capture any errors or events.

    JsonDeserializationContext<TValue>

    The JsonDeserializationContext<TValue> is available from adapters. It provides access to the current adapter enumerator and allows for control of deserialization for a given type.

    JsonMigrationContext

    A migration context used to deserialize and migrate types.

    JsonSerializationContext<TValue>

    The JsonSerializationContext<TValue> is available from adapters. It provides access to the current adapter enumerator and allows for control of serialization for a given type.

    JsonSerializationParameters

    Custom parameters to use for json serialization or deserialization.

    JsonWriter

    The JsonWriter provides forward only writing of encoded JSON text.

    JsonWriter.ArrayScope

    Disposable struct to manage opening and closing array scopes.

    JsonWriter.ObjectScope

    Disposable struct to manage opening and closing object scopes.

    JsonWriter.Unsafe

    This object can be used to build a JSON string in an unsafe or bursted context.

    JsonWriterOptions

    Structure used to define custom behavior when writing JSON using the JsonWriter.

    PackedBinaryStream

    Output stream for deserialization. This stream is used to retain relevant data parsed during deserialization.

    SerializedArrayView

    A view on top of the PackedBinaryStream that represents an array of values.

    SerializedArrayView.Enumerator

    Enumerates the elements of SerializedArrayView.

    SerializedMemberView

    A view on top of the PackedBinaryStream that represents a key-value pair.

    SerializedMemberViewCollection

    A structure to hold a collection of SerializedMemberView.

    SerializedMemberViewCollection.Enumerator

    Enumerates the elements of SerializedMemberViewCollection.

    SerializedObjectReader

    The SerializedObjectReader is the high level API used to deserialize a stream of data.

    SerializedObjectReaderConfiguration

    Parameters used to configure the SerializedObjectReader.

    SerializedObjectView

    A view on top of the PackedBinaryStream that represents a set of key-values.

    SerializedObjectView.Enumerator

    Enumerates the elements of SerializedObjectView.

    SerializedPrimitiveView

    A view on top of the PackedBinaryStream that represents any unquoted value.

    SerializedStringView

    A view on top of the PackedBinaryStream that represents a string.

    SerializedValueView

    A view on top of the PackedBinaryStream that represents any value.

    Interfaces

    IContravariantJsonAdapter<TValue>

    Implement this interface to override serialization and deserialization behaviour for a given type.

    IContravariantJsonMigration<TValue>

    Interface used to describe how a specified type should be migrated from one version to another.

    IJsonAdapter

    Base interface for json adapters.

    IJsonAdapter<TValue>

    Implement this interface to override serialization and deserialization behaviour for a given type.

    IJsonDeserializationContext

    The IJsonDeserializationContext provides an untyped context for contravariant serialization adapters.

    IJsonMigration

    Base interface used to hold a reference to a typed IJsonMigration<TValue>.

    IJsonMigration<TValue>

    Interface used to describe how a specified type should be migrated from one version to another.

    IJsonSerializationContext

    The IJsonSerializationContext provides an untyped context for contravariant serialization adapters.

    Enums

    EventType

    The type of the event encountered during deserialization.

    JsonValidationType

    The validation type to use.

    NodeType

    Step instructions for the high-level reader API.

    This is used as input to control the parser.

    TokenType

    The TokenType is used to describe the high level structure of a data tree.

    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)