using Newtonsoft.Json; ///Use of Newtonsoft.Json is fully optional namespace Backend { [JsonObject] public struct GameState { [JsonProperty("maxPlayers")] public int MaxPlayers; [JsonProperty("imposterCount")] public int ImposterCount; [JsonProperty("phase")] public string Phase; [JsonProperty("players")] public string[] Players; } }