docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MiniJson

    Extension class for MiniJson to Encode and Decode JSON.

    Inheritance
    object
    MiniJson
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Purchasing
    Assembly: Unity.Purchasing.Utilities.dll
    Syntax
    public class MiniJson

    Methods

    JsonDecode(string)

    Converts an string into a JSON object

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

    String to convert to JSON object

    Returns
    Type Description
    object

    JSON object

    JsonEncode(object)

    Converts an object into a JSON string

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

    Object to convert to JSON string

    Returns
    Type Description
    string

    JSON string

    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)