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