private void SaveGeneral(ZipArchive archive) { ZipArchiveEntry entry = GetZipArchiveEntry("general.json", archive); using (StreamWriter file = new StreamWriter(entry.Open())) { JsonSerializer serializer = new JsonSerializer { Formatting = Formatting.None, Converters = { new Vector3Converter() } }; serializer.Serialize(file, gm.GenerateStruct()); } }