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
 public static string WriteCustom <T>(T val)
 {
     return(CustomPrefix <T>() + EditorJsonUtility.ToJson(val));
 }
Beispiel #2
0
 public static string ToJson(UnityEngine.Object obj)
 {
     return(EditorJsonUtility.ToJson(obj, false));
 }
Beispiel #3
0
 protected override string SerializeView()
 {
     return(EditorJsonUtility.ToJson(this));
 }