public void SaveToJson() { int randomNumber = UnityEngine.Random.Range(00000, 99999); jsonPath = Application.persistentDataPath + "/ScoutingData" + randomNumber + ".json"; string json = data.SerializeToJson(); System.IO.File.WriteAllText(jsonPath, json); notificationSystem.FinishedExportingData(); }