Ejemplo n.º 1
0
 public static string Serialize(System.Object obj, bool pretty = false, string indentText = "  ")
 {
     if (UnitySymbol.Has("UNITY_2019_1_OR_NEWER"))
     {
         return(Json.Serialize(obj, pretty, indentText));
     }
     else
     {
         return(Json.Serialize(obj));
     }
 }
Ejemplo n.º 2
0
 public static System.Object Deserialize(string json)
 {
     return(Json.Deserialize(json));
 }