Show / Hide Table of Contents

Class JsonUtility

Inheritance
Object
JsonUtility
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public static class JsonUtility

Methods

| Improve this Doc View Source

FromJson(String, Type)

Declaration
public static object FromJson(string json, Type type)
Parameters
Type Name Description
String json
Type type
Returns
Type Description
Object
| Improve this Doc View Source

FromJson<T>(String)

Declaration
public static T FromJson<T>(string json)
Parameters
Type Name Description
String json
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

FromJsonOverwrite(String, Object)

Declaration
public static void FromJsonOverwrite(string json, object objectToOverwrite)
Parameters
Type Name Description
String json
Object objectToOverwrite
| Improve this Doc View Source

ToJson(Object)

Declaration
public static string ToJson(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
String
| Improve this Doc View Source

ToJson(Object, Boolean)

Declaration
public static string ToJson(object obj, bool prettyPrint)
Parameters
Type Name Description
Object obj
Boolean prettyPrint
Returns
Type Description
String
  • Improve this Doc
  • View Source
Back to top Generated by DocFX