ToJson() public static method

Generate a JSON representation of an object.

public static ToJson ( object obj ) : string
obj object The object to convert to JSON form.
return string
コード例 #1
0
 public static string WriteCustom <T>(T val)
 {
     return(CustomPrefix <T>() + EditorJsonUtility.ToJson(val));
 }
コード例 #2
0
 public static string ToJson(UnityEngine.Object obj)
 {
     return(EditorJsonUtility.ToJson(obj, false));
 }
コード例 #3
0
 protected override string SerializeView()
 {
     return(EditorJsonUtility.ToJson(this));
 }