string data = "{ \"Active\": 1 }";
OutputState s1 = System.Text.Json.JsonSerializer.Deserialize<OutputState>(data);
Console.WriteLine($"OutputState 1: {s1.Active}");
Console.WriteLine($"System.Text.Json failed: {ex.Message}");
OutputState s2 = Newtonsoft.Json.JsonConvert.DeserializeObject<OutputState>(data);
Console.WriteLine($"OutputState 2: {s2.Active}");
Console.WriteLine($"Newtonsoft.Json failed: {ex.Message}");
public record OutputState(bool Active);