Namespace Unity.Serialization.Json | Serialization | 0.6.4-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Namespace Unity.Serialization.Json

    Classes

    InvalidJsonException

    The exception that is thrown when json input is invalid.

    JsonObject

    Generic, mutable data structure used to represent JavaScript Objects.

    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

    JsonDataType

    Types of supported generic JSON objects.

    JsonValidationType

    The validation type to use.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023