docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Json

    Inheritance
    object
    Json
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: IronSourceJSON
    Assembly: Unity.LevelPlay.dll
    Syntax
    [Obsolete("This class will be made private in a future version.", false)]
    public static class Json

    Methods

    Deserialize(string)

    Declaration
    public static object Deserialize(string json)
    Parameters
    Type Name Description
    string json
    Returns
    Type Description
    object

    Serialize(object)

    Converts a IDictionary / IList object or a simple type (string, int, etc.) into a JSON string

    Declaration
    public static string Serialize(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    string

    A JSON encoded string, or null if object 'json' is not serializable

    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)