Namespace Unity.Serialization.Json | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Namespace Unity.Serialization.Json

    Classes

    InvalidJsonException

    The exception that is thrown when json input is invalid.

    JsonSerialization

    Helper class that generically writes any property container as a JSON string.

    @NOTE This class makes heavy use of StringBuilder and .ToString on primitives, which allocates large amounts of memory. Use it sparingly.

    @TODO

    • Optimization

    JsonVisitor

    A visitor that traverses a property container and outputs a JSON string.

    You can enrich the serialization by

    • Extend this class and overriding any methods.
    • Implement a JsonVisitorAdapter and register it using

    JsonVisitor.Style

    Constants for styling and special keys.

    JsonVisitorAdapter

    The JsonVisitorAdapter can be inherited to implement custom serializers for user-defined types.

    Enums

    JsonValidationType

    The validation type to use.

    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX