private void SerializeAndSave() { GenerateInfo(); string PATH = SaveDataController.GenerateFileLocation("ItemInfos.json"); string data = JsonConvert.SerializeObject(ItemInfos, Formatting.Indented); StreamWriter streamWriter = new StreamWriter(PATH); streamWriter.Write(data); streamWriter.Close(); }