docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class JsonData

    A container for JSON data using string parsing to avoid reflection.

    Inheritance
    object
    JsonData
    Implements
    IDictionaryConvertible
    Namespace: UnityEngine.GameFoundation
    Assembly: solution.dll
    Syntax
    public sealed class JsonData : IDictionaryConvertible

    Constructors

    Name Description
    JsonData(string)

    Fields

    Name Description
    arrayTypeNameExtension

    Extension used to identify stored data arrays.

    customTypeNameExtension

    Extension used to identify stored IDictionaryConvertible objects.

    dictionaryTypeName

    Type name used to identify stored Dictionary.

    Methods

    Name Description
    FillFromDictionary(Dictionary<string, object>)

    Reset this object and fill it with the given data.

    ToDictionary()

    Converts this object to a JSON ready dictionary.

    TryGetBuiltInDataArray<T>(string, List<T>)

    Try to find the array of data with the given name and deserialize it into the given list.

    TryGetBuiltInDataArray<T>(string, out T[])

    Try to find the array of data with the given name and deserialize it.

    TryGetBuiltInData<T>(string, out T)

    Try to find the data of the given built-in data type with the given name and deserialize it.

    TryGetCustomDataArray<T>(string, List<T>)

    Try to find the array of data with the given name and deserialize it into the given list.

    TryGetCustomDataArray<T>(string, out T[])

    Try to find the array of data with the given name and deserialize it.

    TryGetCustomData<T>(string, out T)

    Try to find the data with the given name and deserialize it.

    TryGetDataDictionary(string, Dictionary<string, object>)

    Try to find the dictionary of data with the given name and deserialize it into the given dictionary.

    In This Article
    Back to top
    Copyright © 2024 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)