using System;
using System.Text.Json;
public class Program
{
static void Main(string[] args)
try
throw new InvalidOperationException("New exception");
}
catch (Exception ex)
var str = JsonSerializer.Serialize(ex);
Console.WriteLine("Hello World!");